From 97da2e21f68a81afbf689b0bcb50ad59e7db73b6 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 24 May 2022 14:30:12 +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=D0=BC=D0=B5=D0=BD=D1=8E=20=D1=81=D0=BE=20=D1=81?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AwesomeEmailExtractor.csproj | 9 +++ HelpForm.Designer.cs | 75 ++++++++++++++++++++ HelpForm.cs | 20 ++++++ HelpForm.resx | 128 +++++++++++++++++++++++++++++++++++ MainForm.Designer.cs | 17 ++--- MainForm.cs | 6 ++ 6 files changed, 247 insertions(+), 8 deletions(-) create mode 100644 HelpForm.Designer.cs create mode 100644 HelpForm.cs create mode 100644 HelpForm.resx diff --git a/AwesomeEmailExtractor.csproj b/AwesomeEmailExtractor.csproj index d43c5bf..27aeed3 100644 --- a/AwesomeEmailExtractor.csproj +++ b/AwesomeEmailExtractor.csproj @@ -98,6 +98,12 @@ + + Form + + + HelpForm.cs + Form @@ -135,6 +141,9 @@ EditUserForm.cs + + HelpForm.cs + JournalForm.cs diff --git a/HelpForm.Designer.cs b/HelpForm.Designer.cs new file mode 100644 index 0000000..8a6551f --- /dev/null +++ b/HelpForm.Designer.cs @@ -0,0 +1,75 @@ +namespace AwesomeEmailExtractor +{ + partial class HelpForm + { + /// + /// 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HelpForm)); + this.label1 = new System.Windows.Forms.Label(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // label1 + // + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label1.Location = new System.Drawing.Point(3, 9); + this.label1.Name = "label1"; + this.label1.Padding = new System.Windows.Forms.Padding(5); + this.label1.Size = new System.Drawing.Size(649, 358); + this.label1.TabIndex = 0; + this.label1.Text = resources.GetString("label1.Text"); + // + // panel1 + // + this.panel1.Controls.Add(this.label1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(652, 393); + this.panel1.TabIndex = 1; + // + // HelpForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(652, 393); + this.Controls.Add(this.panel1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Name = "HelpForm"; + this.Text = "Справка"; + this.panel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Panel panel1; + } +} \ No newline at end of file diff --git a/HelpForm.cs b/HelpForm.cs new file mode 100644 index 0000000..e1d6279 --- /dev/null +++ b/HelpForm.cs @@ -0,0 +1,20 @@ +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 HelpForm : Form + { + public HelpForm() + { + InitializeComponent(); + } + } +} diff --git a/HelpForm.resx b/HelpForm.resx new file mode 100644 index 0000000..391bb3d --- /dev/null +++ b/HelpForm.resx @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Программный продукт AwesomeEmailExtractor будет востребован в тех случаях, когда необхимо из текста получить список уникальных e-mail-ов. +Для того, чтобы получить список, необходимо ввести исходный текст и нажать кнопку "Выполнить". После этого, в правой части окна появится список из уникальных e-mail-ов. +При необходимости можно экспортировать результат выполнения программы с помощью меню "Файл" > "Экспортировать результат". +Во время своей работы программа ведет журнал активности пользователя. Это может быть полезно, чтобы узнать, какие до этого были результаты выполнения. "Аккаунт" -> "Журнал". +Для смены пароля или удаления аккаунта необходимо выбрать в меню "Аккаунт" -> "Настройки". +Для администраторов доступны некоторые особые возможности, их можно найти в меню "Аккаунт" -> "Администрирование". + + \ No newline at end of file diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index fe132ee..78b89f7 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -36,13 +36,13 @@ this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exportResultToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.аккаунтToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.journalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.administrationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exportResultToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resultStatusStrip.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); @@ -134,6 +134,13 @@ this.fileToolStripMenuItem.Size = new System.Drawing.Size(48, 20); this.fileToolStripMenuItem.Text = "Файл"; // + // exportResultToolStripMenuItem + // + this.exportResultToolStripMenuItem.Name = "exportResultToolStripMenuItem"; + this.exportResultToolStripMenuItem.Size = new System.Drawing.Size(219, 22); + this.exportResultToolStripMenuItem.Text = "Экспортировать результат"; + this.exportResultToolStripMenuItem.Click += new System.EventHandler(this.exportResultToolStripMenuItem_Click); + // // аккаунтToolStripMenuItem // this.аккаунтToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -178,13 +185,7 @@ this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; this.helpToolStripMenuItem.Size = new System.Drawing.Size(65, 20); this.helpToolStripMenuItem.Text = "Справка"; - // - // exportResultToolStripMenuItem - // - this.exportResultToolStripMenuItem.Name = "exportResultToolStripMenuItem"; - this.exportResultToolStripMenuItem.Size = new System.Drawing.Size(219, 22); - this.exportResultToolStripMenuItem.Text = "Экспортировать результат"; - this.exportResultToolStripMenuItem.Click += new System.EventHandler(this.exportResultToolStripMenuItem_Click); + this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click); // // MainForm // diff --git a/MainForm.cs b/MainForm.cs index 84fbdc6..4c66113 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -105,5 +105,11 @@ namespace AwesomeEmailExtractor MessageBox.Show("E-mail-ы успешно сохранены в файл", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information); } } + + private void helpToolStripMenuItem_Click(object sender, EventArgs e) + { + HelpForm helpForm = FormManager.Current.CreateForm(); + helpForm.ShowDialog(this); + } } }