From d47b3ee319289bf3ecabeaa94d571351e141d75c Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 22 May 2022 08:14:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D1=84=D0=BE=D1=80=D0=BC=D1=83=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AuthorizationForm.Designer.cs | 1 + AuthorizationForm.cs | 6 ++ AwesomeEmailExtractor.csproj | 9 ++ RegistrationForm.Designer.cs | 160 ++++++++++++++++++++++++++++++++++ RegistrationForm.cs | 32 +++++++ RegistrationForm.resx | 120 +++++++++++++++++++++++++ 6 files changed, 328 insertions(+) create mode 100644 RegistrationForm.Designer.cs create mode 100644 RegistrationForm.cs create mode 100644 RegistrationForm.resx diff --git a/AuthorizationForm.Designer.cs b/AuthorizationForm.Designer.cs index 88bda87..aef46bc 100644 --- a/AuthorizationForm.Designer.cs +++ b/AuthorizationForm.Designer.cs @@ -55,6 +55,7 @@ this.registerButton.TabIndex = 1; this.registerButton.Text = "Зарегистрироваться"; this.registerButton.UseVisualStyleBackColor = true; + this.registerButton.Click += new System.EventHandler(this.registerButton_Click); // // entryLogin // diff --git a/AuthorizationForm.cs b/AuthorizationForm.cs index 5c3193b..85fd7c0 100644 --- a/AuthorizationForm.cs +++ b/AuthorizationForm.cs @@ -17,5 +17,11 @@ namespace AwesomeEmailExtractor InitializeComponent(); } + private void registerButton_Click(object sender, EventArgs e) + { + this.Close(); + + new RegistrationForm().Show(); + } } } diff --git a/AwesomeEmailExtractor.csproj b/AwesomeEmailExtractor.csproj index 250de0e..546ede3 100644 --- a/AwesomeEmailExtractor.csproj +++ b/AwesomeEmailExtractor.csproj @@ -61,6 +61,12 @@ + + Form + + + RegistrationForm.cs + AuthorizationForm.cs @@ -76,6 +82,9 @@ True Resources.resx + + RegistrationForm.cs + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/RegistrationForm.Designer.cs b/RegistrationForm.Designer.cs new file mode 100644 index 0000000..fde80ad --- /dev/null +++ b/RegistrationForm.Designer.cs @@ -0,0 +1,160 @@ +namespace AwesomeEmailExtractor +{ + partial class RegistrationForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label2 = new System.Windows.Forms.Label(); + this.entryPassword = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.entryLogin = new System.Windows.Forms.TextBox(); + this.registerButton = new System.Windows.Forms.Button(); + this.loginButton = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.entryRePassword = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label2.Location = new System.Drawing.Point(9, 52); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(92, 25); + this.label2.TabIndex = 11; + this.label2.Text = "Пароль:"; + // + // entryPassword + // + this.entryPassword.Location = new System.Drawing.Point(183, 52); + this.entryPassword.Name = "entryPassword"; + this.entryPassword.Size = new System.Drawing.Size(195, 20); + this.entryPassword.TabIndex = 10; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label1.Location = new System.Drawing.Point(9, 10); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(77, 25); + this.label1.TabIndex = 9; + this.label1.Text = "Логин:"; + // + // entryLogin + // + this.entryLogin.Location = new System.Drawing.Point(183, 10); + this.entryLogin.Name = "entryLogin"; + this.entryLogin.Size = new System.Drawing.Size(195, 20); + this.entryLogin.TabIndex = 8; + // + // registerButton + // + this.registerButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.registerButton.Location = new System.Drawing.Point(14, 135); + this.registerButton.Name = "registerButton"; + this.registerButton.Size = new System.Drawing.Size(364, 23); + this.registerButton.TabIndex = 7; + this.registerButton.Text = "Зарегистрироваться"; + this.registerButton.UseVisualStyleBackColor = true; + // + // loginButton + // + this.loginButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.loginButton.Location = new System.Drawing.Point(14, 187); + this.loginButton.Name = "loginButton"; + this.loginButton.Size = new System.Drawing.Size(364, 23); + this.loginButton.TabIndex = 6; + this.loginButton.Text = "Авторизоваться"; + this.loginButton.UseVisualStyleBackColor = true; + this.loginButton.Click += new System.EventHandler(this.loginButton_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label3.Location = new System.Drawing.Point(9, 94); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(167, 25); + this.label3.TabIndex = 13; + this.label3.Text = "Повтор пароля:"; + // + // entryRePassword + // + this.entryRePassword.Location = new System.Drawing.Point(183, 94); + this.entryRePassword.Name = "entryRePassword"; + this.entryRePassword.Size = new System.Drawing.Size(195, 20); + this.entryRePassword.TabIndex = 12; + this.entryRePassword.UseSystemPasswordChar = true; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label4.Location = new System.Drawing.Point(12, 166); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(178, 18); + this.label4.TabIndex = 14; + this.label4.Text = "Уже зарегистрированы?"; + this.label4.Click += new System.EventHandler(this.label4_Click); + // + // RegistrationForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(391, 222); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.entryRePassword); + this.Controls.Add(this.label2); + this.Controls.Add(this.entryPassword); + this.Controls.Add(this.label1); + this.Controls.Add(this.entryLogin); + this.Controls.Add(this.registerButton); + this.Controls.Add(this.loginButton); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Name = "RegistrationForm"; + this.Text = "Зарегистрироваться"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox entryPassword; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox entryLogin; + private System.Windows.Forms.Button registerButton; + private System.Windows.Forms.Button loginButton; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox entryRePassword; + private System.Windows.Forms.Label label4; + } +} \ No newline at end of file diff --git a/RegistrationForm.cs b/RegistrationForm.cs new file mode 100644 index 0000000..d996d9b --- /dev/null +++ b/RegistrationForm.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AwesomeEmailExtractor +{ + public partial class RegistrationForm : Form + { + public RegistrationForm() + { + InitializeComponent(); + } + + private void label4_Click(object sender, EventArgs e) + { + + } + + private void loginButton_Click(object sender, EventArgs e) + { + this.Close(); + + new AuthorizationForm().Show(); + } + } +} diff --git a/RegistrationForm.resx b/RegistrationForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RegistrationForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file