Maxim Slipenko
3ed395fab8
- переименовывает label1 в resultCountLabel - добавляет очистку предыдущего результата перед вызовом алгоритма
172 lines
8.9 KiB
C#
172 lines
8.9 KiB
C#
namespace AwesomeEmailExtractor
|
||
{
|
||
partial class MainForm
|
||
{
|
||
/// <summary>
|
||
/// Обязательная переменная конструктора.
|
||
/// </summary>
|
||
private System.ComponentModel.IContainer components = null;
|
||
|
||
/// <summary>
|
||
/// Освободить все используемые ресурсы.
|
||
/// </summary>
|
||
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
|
||
protected override void Dispose(bool disposing)
|
||
{
|
||
if (disposing && (components != null))
|
||
{
|
||
components.Dispose();
|
||
}
|
||
base.Dispose(disposing);
|
||
}
|
||
|
||
#region Код, автоматически созданный конструктором форм Windows
|
||
|
||
/// <summary>
|
||
/// Требуемый метод для поддержки конструктора — не изменяйте
|
||
/// содержимое этого метода с помощью редактора кода.
|
||
/// </summary>
|
||
private void InitializeComponent()
|
||
{
|
||
this.uniqueListBox = new System.Windows.Forms.ListBox();
|
||
this.sourceRichTextBox = new System.Windows.Forms.RichTextBox();
|
||
this.executeButton = new System.Windows.Forms.Button();
|
||
this.resultCountLabel = new System.Windows.Forms.Label();
|
||
this.resultStatusStrip = new System.Windows.Forms.StatusStrip();
|
||
this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||
this.resultStatusStrip.SuspendLayout();
|
||
this.menuStrip1.SuspendLayout();
|
||
this.SuspendLayout();
|
||
//
|
||
// uniqueListBox
|
||
//
|
||
this.uniqueListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||
| System.Windows.Forms.AnchorStyles.Right)));
|
||
this.uniqueListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||
this.uniqueListBox.FormattingEnabled = true;
|
||
this.uniqueListBox.ItemHeight = 20;
|
||
this.uniqueListBox.Items.AddRange(new object[] {
|
||
"alice@example.com",
|
||
"bob@example.com"});
|
||
this.uniqueListBox.Location = new System.Drawing.Point(424, 32);
|
||
this.uniqueListBox.Name = "uniqueListBox";
|
||
this.uniqueListBox.Size = new System.Drawing.Size(225, 304);
|
||
this.uniqueListBox.TabIndex = 0;
|
||
//
|
||
// sourceRichTextBox
|
||
//
|
||
this.sourceRichTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||
| System.Windows.Forms.AnchorStyles.Left)
|
||
| System.Windows.Forms.AnchorStyles.Right)));
|
||
this.sourceRichTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||
this.sourceRichTextBox.Location = new System.Drawing.Point(12, 32);
|
||
this.sourceRichTextBox.Name = "sourceRichTextBox";
|
||
this.sourceRichTextBox.Size = new System.Drawing.Size(406, 288);
|
||
this.sourceRichTextBox.TabIndex = 1;
|
||
this.sourceRichTextBox.Text = "Алиса (alice@example.com) послылает Бобу (bob@example.com) сообщение.\nАдрес bob@e" +
|
||
"xample.com Алиса нашла на сайте example.com";
|
||
//
|
||
// executeButton
|
||
//
|
||
this.executeButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||
| System.Windows.Forms.AnchorStyles.Right)));
|
||
this.executeButton.Location = new System.Drawing.Point(12, 350);
|
||
this.executeButton.Name = "executeButton";
|
||
this.executeButton.Size = new System.Drawing.Size(406, 24);
|
||
this.executeButton.TabIndex = 2;
|
||
this.executeButton.Text = "Выполнить";
|
||
this.executeButton.UseVisualStyleBackColor = true;
|
||
this.executeButton.Click += new System.EventHandler(this.executeButton_Click);
|
||
//
|
||
// resultCountLabel
|
||
//
|
||
this.resultCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||
| System.Windows.Forms.AnchorStyles.Right)));
|
||
this.resultCountLabel.AutoSize = true;
|
||
this.resultCountLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||
this.resultCountLabel.Location = new System.Drawing.Point(12, 323);
|
||
this.resultCountLabel.Name = "resultCountLabel";
|
||
this.resultCountLabel.Size = new System.Drawing.Size(303, 24);
|
||
this.resultCountLabel.TabIndex = 3;
|
||
this.resultCountLabel.Text = "Количество e-mail-ов в тексте: 3";
|
||
//
|
||
// resultStatusStrip
|
||
//
|
||
this.resultStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||
this.toolStripStatusLabel});
|
||
this.resultStatusStrip.Location = new System.Drawing.Point(0, 377);
|
||
this.resultStatusStrip.Name = "resultStatusStrip";
|
||
this.resultStatusStrip.Size = new System.Drawing.Size(661, 22);
|
||
this.resultStatusStrip.TabIndex = 4;
|
||
//
|
||
// toolStripStatusLabel
|
||
//
|
||
this.toolStripStatusLabel.Name = "toolStripStatusLabel";
|
||
this.toolStripStatusLabel.Size = new System.Drawing.Size(42, 17);
|
||
this.toolStripStatusLabel.Text = "Успех!";
|
||
//
|
||
// menuStrip1
|
||
//
|
||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||
this.fileToolStripMenuItem,
|
||
this.helpToolStripMenuItem});
|
||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||
this.menuStrip1.Name = "menuStrip1";
|
||
this.menuStrip1.Size = new System.Drawing.Size(661, 24);
|
||
this.menuStrip1.TabIndex = 5;
|
||
this.menuStrip1.Text = "menuStrip1";
|
||
//
|
||
// fileToolStripMenuItem
|
||
//
|
||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
|
||
this.fileToolStripMenuItem.Text = "Файл";
|
||
//
|
||
// helpToolStripMenuItem
|
||
//
|
||
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
||
this.helpToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
|
||
this.helpToolStripMenuItem.Text = "Справка";
|
||
//
|
||
// MainForm
|
||
//
|
||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||
this.ClientSize = new System.Drawing.Size(661, 399);
|
||
this.Controls.Add(this.uniqueListBox);
|
||
this.Controls.Add(this.executeButton);
|
||
this.Controls.Add(this.resultStatusStrip);
|
||
this.Controls.Add(this.menuStrip1);
|
||
this.Controls.Add(this.resultCountLabel);
|
||
this.Controls.Add(this.sourceRichTextBox);
|
||
this.MainMenuStrip = this.menuStrip1;
|
||
this.MinimumSize = new System.Drawing.Size(642, 438);
|
||
this.Name = "MainForm";
|
||
this.Text = "Main Form";
|
||
this.resultStatusStrip.ResumeLayout(false);
|
||
this.resultStatusStrip.PerformLayout();
|
||
this.menuStrip1.ResumeLayout(false);
|
||
this.menuStrip1.PerformLayout();
|
||
this.ResumeLayout(false);
|
||
this.PerformLayout();
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
private System.Windows.Forms.ListBox uniqueListBox;
|
||
private System.Windows.Forms.RichTextBox sourceRichTextBox;
|
||
private System.Windows.Forms.Button executeButton;
|
||
private System.Windows.Forms.Label resultCountLabel;
|
||
private System.Windows.Forms.StatusStrip resultStatusStrip;
|
||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
||
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
||
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel;
|
||
}
|
||
}
|
||
|