예제 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.smtp1        = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1 = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     //
     // smtp1
     //
     this.smtp1.Port = 25;
     //
     // mailMessage1
     //
     this.mailMessage1.Date = new System.DateTime(2006, 5, 8, 16, 47, 44, 46);
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.pop31        = new CleverComponents.InetSuite.Pop3();
     this.mailMessage1 = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     //
     // pop31
     //
     this.pop31.Port = 110;
     //
     // mailMessage1
     //
     this.mailMessage1.Date = new System.DateTime(2006, 5, 8, 17, 4, 14, 859);
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
 }
예제 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.cbUseTLS     = new System.Windows.Forms.CheckBox();
     this.edtPort      = new System.Windows.Forms.TextBox();
     this.label4       = new System.Windows.Forms.Label();
     this.edtPassword  = new System.Windows.Forms.TextBox();
     this.edtUser      = new System.Windows.Forms.TextBox();
     this.edtServer    = new System.Windows.Forms.TextBox();
     this.label3       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.label1       = new System.Windows.Forms.Label();
     this.memBody      = new System.Windows.Forms.TextBox();
     this.edtSubject   = new System.Windows.Forms.TextBox();
     this.label8       = new System.Windows.Forms.Label();
     this.edtFrom      = new System.Windows.Forms.TextBox();
     this.label7       = new System.Windows.Forms.Label();
     this.edtTo        = new System.Windows.Forms.TextBox();
     this.label5       = new System.Windows.Forms.Label();
     this.btnSend      = new System.Windows.Forms.Button();
     this.smtp1        = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1 = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // cbUseTLS
     //
     this.cbUseTLS.Checked    = true;
     this.cbUseTLS.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbUseTLS.Location   = new System.Drawing.Point(312, 38);
     this.cbUseTLS.Name       = "cbUseTLS";
     this.cbUseTLS.Size       = new System.Drawing.Size(104, 17);
     this.cbUseTLS.TabIndex   = 3;
     this.cbUseTLS.Text       = "Use SSL / TLS";
     //
     // edtPort
     //
     this.edtPort.Location = new System.Drawing.Point(70, 35);
     this.edtPort.Name     = "edtPort";
     this.edtPort.Size     = new System.Drawing.Size(48, 20);
     this.edtPort.TabIndex = 2;
     this.edtPort.Text     = "25";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 39);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 21;
     this.label4.Text     = "Port";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(296, 64);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(120, 20);
     this.edtPassword.TabIndex     = 5;
     this.edtPassword.Text         = "clevertester";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(70, 63);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(100, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "CleverTester";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(70, 8);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(346, 20);
     this.edtServer.TabIndex = 1;
     this.edtServer.Text     = "localhost";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(236, 67);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(54, 16);
     this.label3.TabIndex = 20;
     this.label3.Text     = "Password";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 67);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 19;
     this.label2.Text     = "User";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 11);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 18;
     this.label1.Text     = "Server";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(16, 184);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(400, 112);
     this.memBody.TabIndex   = 9;
     this.memBody.Text       = resources.GetString("memBody.Text");
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(70, 157);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.Size     = new System.Drawing.Size(346, 20);
     this.edtSubject.TabIndex = 8;
     this.edtSubject.Text     = "ABC Company: New Catalog";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 134);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 13);
     this.label8.TabIndex = 39;
     this.label8.Text     = "To";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(70, 105);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.Size     = new System.Drawing.Size(346, 20);
     this.edtFrom.TabIndex = 6;
     this.edtFrom.Text     = "*****@*****.**";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 108);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 16);
     this.label7.TabIndex = 38;
     this.label7.Text     = "From";
     //
     // edtTo
     //
     this.edtTo.Location = new System.Drawing.Point(70, 131);
     this.edtTo.Name     = "edtTo";
     this.edtTo.Size     = new System.Drawing.Size(346, 20);
     this.edtTo.TabIndex = 7;
     this.edtTo.Text     = "*****@*****.**";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 160);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(48, 15);
     this.label5.TabIndex = 41;
     this.label5.Text     = "Subject";
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(272, 312);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(144, 23);
     this.btnSend.TabIndex = 10;
     this.btnSend.Text     = "Send";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // smtp1
     //
     this.smtp1.VerifyServer += new CleverComponents.InetSuite.VerifyPeerEventHandler(this.smtp1_VerifyServer);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2007, 1, 10, 23, 13, 23, 984);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(434, 344);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.edtTo);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.cbUseTLS);
     this.Controls.Add(this.edtPort);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "SMTP Client with SSL / TLS support";
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.cbUseTLS      = new System.Windows.Forms.CheckBox();
     this.edtPort       = new System.Windows.Forms.TextBox();
     this.label4        = new System.Windows.Forms.Label();
     this.edtPassword   = new System.Windows.Forms.TextBox();
     this.edtUser       = new System.Windows.Forms.TextBox();
     this.edtServer     = new System.Windows.Forms.TextBox();
     this.label3        = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.label1        = new System.Windows.Forms.Label();
     this.btnConnect    = new System.Windows.Forms.Button();
     this.btnDisconnect = new System.Windows.Forms.Button();
     this.memBody       = new System.Windows.Forms.TextBox();
     this.edtSubject    = new System.Windows.Forms.TextBox();
     this.label8        = new System.Windows.Forms.Label();
     this.edtFrom       = new System.Windows.Forms.TextBox();
     this.label7        = new System.Windows.Forms.Label();
     this.lvMessages    = new System.Windows.Forms.ListView();
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label6        = new System.Windows.Forms.Label();
     this.btnDelete     = new System.Windows.Forms.Button();
     this.pop31         = new CleverComponents.InetSuite.Pop3();
     this.mailMessage1  = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // cbUseTLS
     //
     this.cbUseTLS.Checked    = true;
     this.cbUseTLS.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbUseTLS.Location   = new System.Drawing.Point(312, 40);
     this.cbUseTLS.Name       = "cbUseTLS";
     this.cbUseTLS.Size       = new System.Drawing.Size(104, 24);
     this.cbUseTLS.TabIndex   = 3;
     this.cbUseTLS.Text       = "Use SSL / TLS";
     //
     // edtPort
     //
     this.edtPort.Location = new System.Drawing.Point(62, 40);
     this.edtPort.Name     = "edtPort";
     this.edtPort.Size     = new System.Drawing.Size(66, 20);
     this.edtPort.TabIndex = 2;
     this.edtPort.Text     = "995";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 43);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 21;
     this.label4.Text     = "Port";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(312, 72);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(104, 20);
     this.edtPassword.TabIndex     = 5;
     this.edtPassword.Text         = "clevertester";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(62, 72);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(122, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "CleverTester";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(62, 16);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(354, 20);
     this.edtServer.TabIndex = 1;
     this.edtServer.Text     = "localhost";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(253, 75);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(53, 16);
     this.label3.TabIndex = 20;
     this.label3.Text     = "Password";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 75);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 19;
     this.label2.Text     = "User";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 18;
     this.label1.Text     = "Server";
     //
     // btnConnect
     //
     this.btnConnect.Location = new System.Drawing.Point(440, 16);
     this.btnConnect.Name     = "btnConnect";
     this.btnConnect.Size     = new System.Drawing.Size(96, 23);
     this.btnConnect.TabIndex = 6;
     this.btnConnect.Text     = "Connect";
     this.btnConnect.Click   += new System.EventHandler(this.btnConnect_Click);
     //
     // btnDisconnect
     //
     this.btnDisconnect.Location = new System.Drawing.Point(440, 64);
     this.btnDisconnect.Name     = "btnDisconnect";
     this.btnDisconnect.Size     = new System.Drawing.Size(96, 23);
     this.btnDisconnect.TabIndex = 7;
     this.btnDisconnect.Text     = "Disconnect";
     this.btnDisconnect.Click   += new System.EventHandler(this.btnDisconnect_Click);
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(16, 272);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ReadOnly   = true;
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(520, 96);
     this.memBody.TabIndex   = 13;
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(72, 248);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.ReadOnly = true;
     this.edtSubject.Size     = new System.Drawing.Size(464, 20);
     this.edtSubject.TabIndex = 12;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 248);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 23);
     this.label8.TabIndex = 34;
     this.label8.Text     = "Subject";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(72, 224);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.ReadOnly = true;
     this.edtFrom.Size     = new System.Drawing.Size(464, 20);
     this.edtFrom.TabIndex = 11;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 224);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 23);
     this.label7.TabIndex = 33;
     this.label7.Text     = "From";
     //
     // lvMessages
     //
     this.lvMessages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader3,
         this.columnHeader2,
         this.columnHeader4,
         this.columnHeader5
     });
     this.lvMessages.FullRowSelect = true;
     this.lvMessages.HideSelection = false;
     this.lvMessages.Location      = new System.Drawing.Point(16, 128);
     this.lvMessages.Name          = "lvMessages";
     this.lvMessages.Size          = new System.Drawing.Size(400, 88);
     this.lvMessages.TabIndex      = 8;
     this.lvMessages.UseCompatibleStateImageBehavior = false;
     this.lvMessages.View = System.Windows.Forms.View.Details;
     this.lvMessages.SelectedIndexChanged += new System.EventHandler(this.lvMessages_SelectedIndexChanged);
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "From";
     this.columnHeader3.Width = 120;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Subject";
     this.columnHeader2.Width = 120;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "Date";
     this.columnHeader4.Width = 80;
     //
     // columnHeader5
     //
     this.columnHeader5.Text = "UID";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 104);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 23);
     this.label6.TabIndex = 32;
     this.label6.Text     = "Messages";
     //
     // btnDelete
     //
     this.btnDelete.Location = new System.Drawing.Point(440, 136);
     this.btnDelete.Name     = "btnDelete";
     this.btnDelete.Size     = new System.Drawing.Size(96, 23);
     this.btnDelete.TabIndex = 10;
     this.btnDelete.Text     = "Delete Message";
     this.btnDelete.Click   += new System.EventHandler(this.btnDelete_Click);
     //
     // pop31
     //
     this.pop31.VerifyServer += new CleverComponents.InetSuite.VerifyPeerEventHandler(this.pop31_VerifyServer);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2007, 1, 10, 21, 6, 40, 109);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(560, 376);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.lvMessages);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.btnDisconnect);
     this.Controls.Add(this.btnConnect);
     this.Controls.Add(this.cbUseTLS);
     this.Controls.Add(this.edtPort);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "POP3 Client with SSL / TLS support";
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.edtServer       = new System.Windows.Forms.TextBox();
     this.edtUser         = new System.Windows.Forms.TextBox();
     this.edtPassword     = new System.Windows.Forms.TextBox();
     this.cbUseSPA        = new System.Windows.Forms.CheckBox();
     this.label4          = new System.Windows.Forms.Label();
     this.edtPort         = new System.Windows.Forms.TextBox();
     this.label5          = new System.Windows.Forms.Label();
     this.edtTimeOut      = new System.Windows.Forms.TextBox();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.edtFirstUnseen  = new System.Windows.Forms.TextBox();
     this.label9          = new System.Windows.Forms.Label();
     this.edtRecent       = new System.Windows.Forms.TextBox();
     this.label8          = new System.Windows.Forms.Label();
     this.edtAll          = new System.Windows.Forms.TextBox();
     this.label7          = new System.Windows.Forms.Label();
     this.edtSubscribed   = new System.Windows.Forms.TextBox();
     this.label6          = new System.Windows.Forms.Label();
     this.lvMessages      = new System.Windows.Forms.ListView();
     this.columnHeader1   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.tvFolders       = new System.Windows.Forms.ListBox();
     this.label10         = new System.Windows.Forms.Label();
     this.memLog          = new System.Windows.Forms.TextBox();
     this.btnLogin        = new System.Windows.Forms.Button();
     this.btnLogout       = new System.Windows.Forms.Button();
     this.btnNewFolder    = new System.Windows.Forms.Button();
     this.btnDeleteFolder = new System.Windows.Forms.Button();
     this.btnFind         = new System.Windows.Forms.Button();
     this.btnSubscribe    = new System.Windows.Forms.Button();
     this.btnUnsubscribe  = new System.Windows.Forms.Button();
     this.btnAppend       = new System.Windows.Forms.Button();
     this.btnCopy         = new System.Windows.Forms.Button();
     this.btnDelete       = new System.Windows.Forms.Button();
     this.btnPurge        = new System.Windows.Forms.Button();
     this.imap41          = new CleverComponents.InetSuite.Imap4();
     this.mailMessage1    = new CleverComponents.InetSuite.MailMessage();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imap41)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Server";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "User";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 64);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(64, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Password";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(80, 16);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(216, 20);
     this.edtServer.TabIndex = 3;
     this.edtServer.Text     = "localhost";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(80, 40);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(216, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "CleverTester";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(80, 64);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(216, 20);
     this.edtPassword.TabIndex     = 5;
     this.edtPassword.Text         = "clevertester";
     //
     // cbUseSPA
     //
     this.cbUseSPA.Location = new System.Drawing.Point(312, 16);
     this.cbUseSPA.Name     = "cbUseSPA";
     this.cbUseSPA.Size     = new System.Drawing.Size(216, 24);
     this.cbUseSPA.TabIndex = 6;
     this.cbUseSPA.Text     = "Use Secure Password Authentication";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(312, 40);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Port";
     //
     // edtPort
     //
     this.edtPort.Location = new System.Drawing.Point(392, 40);
     this.edtPort.Name     = "edtPort";
     this.edtPort.Size     = new System.Drawing.Size(128, 20);
     this.edtPort.TabIndex = 9;
     this.edtPort.Text     = "143";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(312, 64);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(72, 16);
     this.label5.TabIndex = 10;
     this.label5.Text     = "TimeOut, s";
     //
     // edtTimeOut
     //
     this.edtTimeOut.Location = new System.Drawing.Point(392, 64);
     this.edtTimeOut.Name     = "edtTimeOut";
     this.edtTimeOut.Size     = new System.Drawing.Size(128, 20);
     this.edtTimeOut.TabIndex = 11;
     this.edtTimeOut.Text     = "60";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.edtFirstUnseen);
     this.groupBox1.Controls.Add(this.label9);
     this.groupBox1.Controls.Add(this.edtRecent);
     this.groupBox1.Controls.Add(this.label8);
     this.groupBox1.Controls.Add(this.edtAll);
     this.groupBox1.Controls.Add(this.label7);
     this.groupBox1.Controls.Add(this.edtSubscribed);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Location = new System.Drawing.Point(184, 96);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(336, 80);
     this.groupBox1.TabIndex = 13;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Folder Details";
     //
     // edtFirstUnseen
     //
     this.edtFirstUnseen.Location = new System.Drawing.Point(256, 48);
     this.edtFirstUnseen.Name     = "edtFirstUnseen";
     this.edtFirstUnseen.Size     = new System.Drawing.Size(64, 20);
     this.edtFirstUnseen.TabIndex = 7;
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(152, 48);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(88, 16);
     this.label9.TabIndex = 6;
     this.label9.Text     = "First Unseen";
     //
     // edtRecent
     //
     this.edtRecent.Location = new System.Drawing.Point(256, 24);
     this.edtRecent.Name     = "edtRecent";
     this.edtRecent.Size     = new System.Drawing.Size(64, 20);
     this.edtRecent.TabIndex = 5;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(152, 24);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(96, 16);
     this.label8.TabIndex = 4;
     this.label8.Text     = "Recent Messages";
     //
     // edtAll
     //
     this.edtAll.Location = new System.Drawing.Point(80, 48);
     this.edtAll.Name     = "edtAll";
     this.edtAll.Size     = new System.Drawing.Size(64, 20);
     this.edtAll.TabIndex = 3;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(8, 48);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(72, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "All Messages";
     //
     // edtSubscribed
     //
     this.edtSubscribed.Location = new System.Drawing.Point(80, 24);
     this.edtSubscribed.Name     = "edtSubscribed";
     this.edtSubscribed.Size     = new System.Drawing.Size(64, 20);
     this.edtSubscribed.TabIndex = 1;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(8, 24);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 16);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Subscribed";
     //
     // lvMessages
     //
     this.lvMessages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4
     });
     this.lvMessages.FullRowSelect = true;
     this.lvMessages.HideSelection = false;
     this.lvMessages.Location      = new System.Drawing.Point(184, 184);
     this.lvMessages.Name          = "lvMessages";
     this.lvMessages.Size          = new System.Drawing.Size(336, 104);
     this.lvMessages.TabIndex      = 14;
     this.lvMessages.UseCompatibleStateImageBehavior = false;
     this.lvMessages.View         = System.Windows.Forms.View.Details;
     this.lvMessages.DoubleClick += new System.EventHandler(this.lvMessages_DoubleClick);
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "No";
     this.columnHeader1.Width = 50;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Subject";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "From";
     this.columnHeader3.Width = 100;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "Flags";
     this.columnHeader4.Width = 80;
     //
     // tvFolders
     //
     this.tvFolders.Location              = new System.Drawing.Point(16, 104);
     this.tvFolders.Name                  = "tvFolders";
     this.tvFolders.Size                  = new System.Drawing.Size(152, 186);
     this.tvFolders.TabIndex              = 12;
     this.tvFolders.SelectedIndexChanged += new System.EventHandler(this.tvFolders_SelectedIndexChanged);
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(16, 296);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(48, 16);
     this.label10.TabIndex = 15;
     this.label10.Text     = "Log";
     //
     // memLog
     //
     this.memLog.Location   = new System.Drawing.Point(16, 312);
     this.memLog.Multiline  = true;
     this.memLog.Name       = "memLog";
     this.memLog.ReadOnly   = true;
     this.memLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
     this.memLog.Size       = new System.Drawing.Size(504, 72);
     this.memLog.TabIndex   = 16;
     //
     // btnLogin
     //
     this.btnLogin.Location = new System.Drawing.Point(536, 16);
     this.btnLogin.Name     = "btnLogin";
     this.btnLogin.Size     = new System.Drawing.Size(96, 23);
     this.btnLogin.TabIndex = 17;
     this.btnLogin.Text     = "Login";
     this.btnLogin.Click   += new System.EventHandler(this.btnLogin_Click);
     //
     // btnLogout
     //
     this.btnLogout.Location = new System.Drawing.Point(536, 48);
     this.btnLogout.Name     = "btnLogout";
     this.btnLogout.Size     = new System.Drawing.Size(96, 23);
     this.btnLogout.TabIndex = 18;
     this.btnLogout.Text     = "Logout";
     this.btnLogout.Click   += new System.EventHandler(this.btnLogout_Click);
     //
     // btnNewFolder
     //
     this.btnNewFolder.Location = new System.Drawing.Point(536, 96);
     this.btnNewFolder.Name     = "btnNewFolder";
     this.btnNewFolder.Size     = new System.Drawing.Size(96, 23);
     this.btnNewFolder.TabIndex = 19;
     this.btnNewFolder.Text     = "New Folder...";
     this.btnNewFolder.Click   += new System.EventHandler(this.btnNewFolder_Click);
     //
     // btnDeleteFolder
     //
     this.btnDeleteFolder.Location = new System.Drawing.Point(536, 128);
     this.btnDeleteFolder.Name     = "btnDeleteFolder";
     this.btnDeleteFolder.Size     = new System.Drawing.Size(96, 23);
     this.btnDeleteFolder.TabIndex = 20;
     this.btnDeleteFolder.Text     = "Delete Folder";
     this.btnDeleteFolder.Click   += new System.EventHandler(this.btnDeleteFolder_Click);
     //
     // btnFind
     //
     this.btnFind.Location = new System.Drawing.Point(536, 160);
     this.btnFind.Name     = "btnFind";
     this.btnFind.Size     = new System.Drawing.Size(96, 23);
     this.btnFind.TabIndex = 21;
     this.btnFind.Text     = "Find...";
     this.btnFind.Click   += new System.EventHandler(this.btnFind_Click);
     //
     // btnSubscribe
     //
     this.btnSubscribe.Location = new System.Drawing.Point(536, 192);
     this.btnSubscribe.Name     = "btnSubscribe";
     this.btnSubscribe.Size     = new System.Drawing.Size(96, 23);
     this.btnSubscribe.TabIndex = 22;
     this.btnSubscribe.Text     = "Subscribe";
     this.btnSubscribe.Click   += new System.EventHandler(this.btnSubscribe_Click);
     //
     // btnUnsubscribe
     //
     this.btnUnsubscribe.Location = new System.Drawing.Point(536, 224);
     this.btnUnsubscribe.Name     = "btnUnsubscribe";
     this.btnUnsubscribe.Size     = new System.Drawing.Size(96, 23);
     this.btnUnsubscribe.TabIndex = 23;
     this.btnUnsubscribe.Text     = "Unsubscribe";
     this.btnUnsubscribe.Click   += new System.EventHandler(this.btnUnsubscribe_Click);
     //
     // btnAppend
     //
     this.btnAppend.Location = new System.Drawing.Point(536, 264);
     this.btnAppend.Name     = "btnAppend";
     this.btnAppend.Size     = new System.Drawing.Size(96, 23);
     this.btnAppend.TabIndex = 24;
     this.btnAppend.Text     = "Append...";
     this.btnAppend.Click   += new System.EventHandler(this.btnAppend_Click);
     //
     // btnCopy
     //
     this.btnCopy.Location = new System.Drawing.Point(536, 296);
     this.btnCopy.Name     = "btnCopy";
     this.btnCopy.Size     = new System.Drawing.Size(96, 23);
     this.btnCopy.TabIndex = 25;
     this.btnCopy.Text     = "Copy";
     this.btnCopy.Click   += new System.EventHandler(this.btnCopy_Click);
     //
     // btnDelete
     //
     this.btnDelete.Location = new System.Drawing.Point(536, 328);
     this.btnDelete.Name     = "btnDelete";
     this.btnDelete.Size     = new System.Drawing.Size(96, 23);
     this.btnDelete.TabIndex = 26;
     this.btnDelete.Text     = "Delete";
     this.btnDelete.Click   += new System.EventHandler(this.btnDelete_Click);
     //
     // btnPurge
     //
     this.btnPurge.Location = new System.Drawing.Point(536, 360);
     this.btnPurge.Name     = "btnPurge";
     this.btnPurge.Size     = new System.Drawing.Size(96, 23);
     this.btnPurge.TabIndex = 27;
     this.btnPurge.Text     = "Purge Deleted";
     this.btnPurge.Click   += new System.EventHandler(this.btnPurge_Click);
     //
     // imap41
     //
     this.imap41.CommandSent      += new CleverComponents.InetSuite.TcpTextEventHandler(this.imap41_CommandSent);
     this.imap41.ResponseReceived += new CleverComponents.InetSuite.TcpListEventHandler(this.imap41_ResponseReceived);
     //
     // mailMessage1
     //
     this.mailMessage1.Date = new System.DateTime(2006, 5, 4, 21, 9, 17, 733);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(648, 398);
     this.Controls.Add(this.btnPurge);
     this.Controls.Add(this.btnDelete);
     this.Controls.Add(this.btnCopy);
     this.Controls.Add(this.btnAppend);
     this.Controls.Add(this.btnUnsubscribe);
     this.Controls.Add(this.btnSubscribe);
     this.Controls.Add(this.btnFind);
     this.Controls.Add(this.btnDeleteFolder);
     this.Controls.Add(this.btnNewFolder);
     this.Controls.Add(this.btnLogout);
     this.Controls.Add(this.btnLogin);
     this.Controls.Add(this.memLog);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.tvFolders);
     this.Controls.Add(this.lvMessages);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.edtTimeOut);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.edtPort);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.cbUseSPA);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "IMAP Client";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imap41)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.edtPassword   = new System.Windows.Forms.TextBox();
     this.edtUser       = new System.Windows.Forms.TextBox();
     this.edtServer     = new System.Windows.Forms.TextBox();
     this.label3        = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.label1        = new System.Windows.Forms.Label();
     this.edtPort       = new System.Windows.Forms.TextBox();
     this.label4        = new System.Windows.Forms.Label();
     this.cbUseTLS      = new System.Windows.Forms.CheckBox();
     this.btnLogout     = new System.Windows.Forms.Button();
     this.btnLogin      = new System.Windows.Forms.Button();
     this.tvFolders     = new System.Windows.Forms.ListBox();
     this.label5        = new System.Windows.Forms.Label();
     this.label6        = new System.Windows.Forms.Label();
     this.lvMessages    = new System.Windows.Forms.ListView();
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label7        = new System.Windows.Forms.Label();
     this.edtFrom       = new System.Windows.Forms.TextBox();
     this.edtSubject    = new System.Windows.Forms.TextBox();
     this.label8        = new System.Windows.Forms.Label();
     this.memBody       = new System.Windows.Forms.TextBox();
     this.imap41        = new CleverComponents.InetSuite.Imap4();
     this.mailMessage1  = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.imap41)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(312, 72);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(104, 20);
     this.edtPassword.TabIndex     = 5;
     this.edtPassword.Text         = "clevertester";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(60, 72);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(124, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "CleverTester";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(60, 16);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(356, 20);
     this.edtServer.TabIndex = 1;
     this.edtServer.Text     = "localhost";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(252, 75);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(54, 16);
     this.label3.TabIndex = 8;
     this.label3.Text     = "Password";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 75);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 7;
     this.label2.Text     = "User";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(48, 16);
     this.label1.TabIndex = 6;
     this.label1.Text     = "Server";
     //
     // edtPort
     //
     this.edtPort.Location = new System.Drawing.Point(60, 40);
     this.edtPort.Name     = "edtPort";
     this.edtPort.Size     = new System.Drawing.Size(68, 20);
     this.edtPort.TabIndex = 2;
     this.edtPort.Text     = "993";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 40);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 12;
     this.label4.Text     = "Port";
     //
     // cbUseTLS
     //
     this.cbUseTLS.Checked    = true;
     this.cbUseTLS.CheckState = System.Windows.Forms.CheckState.Checked;
     this.cbUseTLS.Location   = new System.Drawing.Point(312, 40);
     this.cbUseTLS.Name       = "cbUseTLS";
     this.cbUseTLS.Size       = new System.Drawing.Size(104, 24);
     this.cbUseTLS.TabIndex   = 3;
     this.cbUseTLS.Text       = "Use SSL / TLS";
     //
     // btnLogout
     //
     this.btnLogout.Location = new System.Drawing.Point(432, 48);
     this.btnLogout.Name     = "btnLogout";
     this.btnLogout.Size     = new System.Drawing.Size(96, 23);
     this.btnLogout.TabIndex = 7;
     this.btnLogout.Text     = "Logout";
     this.btnLogout.Click   += new System.EventHandler(this.btnLogout_Click);
     //
     // btnLogin
     //
     this.btnLogin.Location = new System.Drawing.Point(432, 16);
     this.btnLogin.Name     = "btnLogin";
     this.btnLogin.Size     = new System.Drawing.Size(96, 23);
     this.btnLogin.TabIndex = 6;
     this.btnLogin.Text     = "Login";
     this.btnLogin.Click   += new System.EventHandler(this.btnLogin_Click);
     //
     // tvFolders
     //
     this.tvFolders.Location              = new System.Drawing.Point(16, 128);
     this.tvFolders.Name                  = "tvFolders";
     this.tvFolders.Size                  = new System.Drawing.Size(152, 264);
     this.tvFolders.TabIndex              = 8;
     this.tvFolders.SelectedIndexChanged += new System.EventHandler(this.tvFolders_SelectedIndexChanged);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 104);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(80, 23);
     this.label5.TabIndex = 22;
     this.label5.Text     = "Imap Folders";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(192, 104);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 23);
     this.label6.TabIndex = 23;
     this.label6.Text     = "Messages";
     //
     // lvMessages
     //
     this.lvMessages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4,
         this.columnHeader5
     });
     this.lvMessages.FullRowSelect = true;
     this.lvMessages.HideSelection = false;
     this.lvMessages.Location      = new System.Drawing.Point(176, 128);
     this.lvMessages.Name          = "lvMessages";
     this.lvMessages.Size          = new System.Drawing.Size(352, 104);
     this.lvMessages.TabIndex      = 9;
     this.lvMessages.UseCompatibleStateImageBehavior = false;
     this.lvMessages.View = System.Windows.Forms.View.Details;
     this.lvMessages.SelectedIndexChanged += new System.EventHandler(this.lvMessages_SelectedIndexChanged);
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Subject";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "From";
     this.columnHeader3.Width = 100;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "Date";
     this.columnHeader4.Width = 80;
     //
     // columnHeader5
     //
     this.columnHeader5.Text = "Size";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(184, 248);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 23);
     this.label7.TabIndex = 25;
     this.label7.Text     = "From";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(232, 248);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.ReadOnly = true;
     this.edtFrom.Size     = new System.Drawing.Size(296, 20);
     this.edtFrom.TabIndex = 10;
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(232, 272);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.ReadOnly = true;
     this.edtSubject.Size     = new System.Drawing.Size(296, 20);
     this.edtSubject.TabIndex = 11;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(184, 272);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 23);
     this.label8.TabIndex = 27;
     this.label8.Text     = "Subject";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(184, 296);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ReadOnly   = true;
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(344, 96);
     this.memBody.TabIndex   = 12;
     //
     // imap41
     //
     this.imap41.VerifyServer += new CleverComponents.InetSuite.VerifyPeerEventHandler(this.imap41_VerifyServer);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2007, 1, 10, 13, 51, 45, 827);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(546, 408);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.lvMessages);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.tvFolders);
     this.Controls.Add(this.btnLogout);
     this.Controls.Add(this.btnLogin);
     this.Controls.Add(this.cbUseTLS);
     this.Controls.Add(this.edtPort);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "IMAP4 Client with SSL / TLS support";
     ((System.ComponentModel.ISupportInitialize)(this.imap41)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label4         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.edtPop3Server  = new System.Windows.Forms.TextBox();
     this.edtUser        = new System.Windows.Forms.TextBox();
     this.edtPassword    = new System.Windows.Forms.TextBox();
     this.edtSmtpServer  = new System.Windows.Forms.TextBox();
     this.btnComposeMail = new System.Windows.Forms.Button();
     this.btnCheckMail   = new System.Windows.Forms.Button();
     this.lbMessages     = new System.Windows.Forms.ListBox();
     this.pop31          = new CleverComponents.InetSuite.Pop3();
     this.smtp1          = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1   = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "POP server";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 67);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "User";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 91);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(64, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Password";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 43);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(72, 16);
     this.label4.TabIndex = 3;
     this.label4.Text     = "SMTP server";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 152);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(168, 16);
     this.label6.TabIndex = 5;
     this.label6.Text     = "Messages. Double click to view";
     //
     // edtPop3Server
     //
     this.edtPop3Server.Location = new System.Drawing.Point(94, 16);
     this.edtPop3Server.Name     = "edtPop3Server";
     this.edtPop3Server.Size     = new System.Drawing.Size(282, 20);
     this.edtPop3Server.TabIndex = 1;
     this.edtPop3Server.Text     = "pop.domain.com";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(94, 64);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(282, 20);
     this.edtUser.TabIndex = 3;
     this.edtUser.Text     = "user";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(94, 88);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(282, 20);
     this.edtPassword.TabIndex     = 4;
     this.edtPassword.Text         = "password";
     //
     // edtSmtpServer
     //
     this.edtSmtpServer.Location = new System.Drawing.Point(94, 40);
     this.edtSmtpServer.Name     = "edtSmtpServer";
     this.edtSmtpServer.Size     = new System.Drawing.Size(282, 20);
     this.edtSmtpServer.TabIndex = 2;
     this.edtSmtpServer.Text     = "smtp.domain.com";
     //
     // btnComposeMail
     //
     this.btnComposeMail.Location = new System.Drawing.Point(213, 120);
     this.btnComposeMail.Name     = "btnComposeMail";
     this.btnComposeMail.Size     = new System.Drawing.Size(104, 20);
     this.btnComposeMail.TabIndex = 6;
     this.btnComposeMail.Text     = "Compose Mail";
     this.btnComposeMail.Click   += new System.EventHandler(this.btnComposeMail_Click);
     //
     // btnCheckMail
     //
     this.btnCheckMail.Location = new System.Drawing.Point(94, 120);
     this.btnCheckMail.Name     = "btnCheckMail";
     this.btnCheckMail.Size     = new System.Drawing.Size(104, 20);
     this.btnCheckMail.TabIndex = 5;
     this.btnCheckMail.Text     = "Check Mail";
     this.btnCheckMail.Click   += new System.EventHandler(this.btnCheckMail_Click);
     //
     // lbMessages
     //
     this.lbMessages.Location     = new System.Drawing.Point(16, 168);
     this.lbMessages.Name         = "lbMessages";
     this.lbMessages.Size         = new System.Drawing.Size(360, 147);
     this.lbMessages.TabIndex     = 7;
     this.lbMessages.DoubleClick += new System.EventHandler(this.lbMessages_DoubleClick);
     //
     // mailMessage1
     //
     this.mailMessage1.Date = new System.DateTime(2006, 5, 4, 23, 33, 9, 265);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(394, 326);
     this.Controls.Add(this.lbMessages);
     this.Controls.Add(this.btnCheckMail);
     this.Controls.Add(this.btnComposeMail);
     this.Controls.Add(this.edtSmtpServer);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtPop3Server);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "SMTP / POP3 client demo";
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #8
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label4         = new System.Windows.Forms.Label();
     this.label5         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.label7         = new System.Windows.Forms.Label();
     this.label8         = new System.Windows.Forms.Label();
     this.edtFrom        = new System.Windows.Forms.TextBox();
     this.edtTo          = new System.Windows.Forms.TextBox();
     this.edtSubject     = new System.Windows.Forms.TextBox();
     this.edtPickup      = new System.Windows.Forms.TextBox();
     this.memText        = new System.Windows.Forms.RichTextBox();
     this.memHtml        = new System.Windows.Forms.RichTextBox();
     this.lbAttachments  = new System.Windows.Forms.ListBox();
     this.btnAdd         = new System.Windows.Forms.Button();
     this.btnClear       = new System.Windows.Forms.Button();
     this.btnNew         = new System.Windows.Forms.Button();
     this.btnSend        = new System.Windows.Forms.Button();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.mailMessage1   = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.label1.Location = new System.Drawing.Point(16, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(496, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "This demo demonstrates how to send MIME mail message using Microsoft Exchange ser" +
                            "ver";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 32);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 1;
     this.label2.Text     = "From";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 56);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 2;
     this.label3.Text     = "To";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 80);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 3;
     this.label4.Text     = "Subject";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 112);
     this.label5.Name     = "label5";
     this.label5.TabIndex = 4;
     this.label5.Text     = "Plain Text";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(272, 104);
     this.label6.Name     = "label6";
     this.label6.TabIndex = 5;
     this.label6.Text     = "Plain Html";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 248);
     this.label7.Name     = "label7";
     this.label7.TabIndex = 6;
     this.label7.Text     = "Attachments";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 336);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(152, 23);
     this.label8.TabIndex = 7;
     this.label8.Text     = "Exchange drop/pickup folder";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(120, 32);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.Size     = new System.Drawing.Size(384, 20);
     this.edtFrom.TabIndex = 0;
     this.edtFrom.Text     = "*****@*****.**";
     //
     // edtTo
     //
     this.edtTo.Location = new System.Drawing.Point(120, 56);
     this.edtTo.Name     = "edtTo";
     this.edtTo.Size     = new System.Drawing.Size(384, 20);
     this.edtTo.TabIndex = 1;
     this.edtTo.Text     = "*****@*****.**";
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(120, 80);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.Size     = new System.Drawing.Size(384, 20);
     this.edtSubject.TabIndex = 2;
     this.edtSubject.Text     = "Clever Message Parser Test";
     //
     // edtPickup
     //
     this.edtPickup.Location = new System.Drawing.Point(168, 336);
     this.edtPickup.Name     = "edtPickup";
     this.edtPickup.Size     = new System.Drawing.Size(336, 20);
     this.edtPickup.TabIndex = 8;
     this.edtPickup.Text     = "C:\\Inetpub\\mailroot\\Pickup";
     //
     // memText
     //
     this.memText.DetectUrls = false;
     this.memText.Location   = new System.Drawing.Point(16, 128);
     this.memText.Name       = "memText";
     this.memText.Size       = new System.Drawing.Size(240, 112);
     this.memText.TabIndex   = 3;
     this.memText.Text       = "";
     //
     // memHtml
     //
     this.memHtml.DetectUrls = false;
     this.memHtml.Location   = new System.Drawing.Point(264, 128);
     this.memHtml.Name       = "memHtml";
     this.memHtml.Size       = new System.Drawing.Size(240, 112);
     this.memHtml.TabIndex   = 4;
     this.memHtml.Text       = "";
     //
     // lbAttachments
     //
     this.lbAttachments.Location = new System.Drawing.Point(16, 264);
     this.lbAttachments.Name     = "lbAttachments";
     this.lbAttachments.Size     = new System.Drawing.Size(320, 56);
     this.lbAttachments.TabIndex = 5;
     //
     // btnAdd
     //
     this.btnAdd.Location = new System.Drawing.Point(344, 264);
     this.btnAdd.Name     = "btnAdd";
     this.btnAdd.TabIndex = 6;
     this.btnAdd.Text     = "Add...";
     this.btnAdd.Click   += new System.EventHandler(this.btnAdd_Click);
     //
     // btnClear
     //
     this.btnClear.Location = new System.Drawing.Point(344, 296);
     this.btnClear.Name     = "btnClear";
     this.btnClear.TabIndex = 7;
     this.btnClear.Text     = "Clear";
     this.btnClear.Click   += new System.EventHandler(this.btnClear_Click);
     //
     // btnNew
     //
     this.btnNew.Location = new System.Drawing.Point(280, 368);
     this.btnNew.Name     = "btnNew";
     this.btnNew.Size     = new System.Drawing.Size(104, 23);
     this.btnNew.TabIndex = 9;
     this.btnNew.Text     = "New Message";
     this.btnNew.Click   += new System.EventHandler(this.btnNew_Click);
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(400, 368);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(104, 23);
     this.btnSend.TabIndex = 10;
     this.btnSend.Text     = "Send Message";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // mailMessage1
     //
     this.mailMessage1.Date = new System.DateTime(2006, 5, 5, 16, 21, 37, 750);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(520, 408);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.btnNew);
     this.Controls.Add(this.btnClear);
     this.Controls.Add(this.btnAdd);
     this.Controls.Add(this.lbAttachments);
     this.Controls.Add(this.memHtml);
     this.Controls.Add(this.memText);
     this.Controls.Add(this.edtPickup);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.edtTo);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "MS SMTP Mail Sender";
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1        = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.label3        = new System.Windows.Forms.Label();
     this.label4        = new System.Windows.Forms.Label();
     this.label5        = new System.Windows.Forms.Label();
     this.label6        = new System.Windows.Forms.Label();
     this.label7        = new System.Windows.Forms.Label();
     this.label8        = new System.Windows.Forms.Label();
     this.label9        = new System.Windows.Forms.Label();
     this.edtDNS        = new System.Windows.Forms.TextBox();
     this.edtDNSTimeOut = new System.Windows.Forms.TextBox();
     this.edtSender     = new System.Windows.Forms.TextBox();
     this.edtRecipient  = new System.Windows.Forms.TextBox();
     this.edtSubject    = new System.Windows.Forms.TextBox();
     this.memText       = new System.Windows.Forms.TextBox();
     this.btnSend       = new System.Windows.Forms.Button();
     this.smtpRelay1    = new CleverComponents.InetSuite.SmtpRelay();
     this.mailMessage1  = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.smtpRelay1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(384, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "This demo creates e-mail and sends it directly to the recipient\'s server.";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(400, 32);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Please specify the DNS server IP which will be used for resolving the SMTP server" +
                            " address of the recipient";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 80);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(392, 32);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Please note ! Most SMTP servers require that the sender PC must be registered in " +
                            "DNS. Otherwise, relaying will be denied to such SMTP servers.";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 131);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(80, 16);
     this.label4.TabIndex = 3;
     this.label4.Text     = "DNS server IP";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 155);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(72, 16);
     this.label5.TabIndex = 4;
     this.label5.Text     = "Sender email";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 179);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 16);
     this.label6.TabIndex = 5;
     this.label6.Text     = "Recipinets";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 203);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(104, 16);
     this.label7.TabIndex = 6;
     this.label7.Text     = "Subject of message";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 224);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(80, 16);
     this.label8.TabIndex = 7;
     this.label8.Text     = "Message text";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(255, 131);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(88, 16);
     this.label9.TabIndex = 8;
     this.label9.Text     = "DNS TimeOut, s";
     //
     // edtDNS
     //
     this.edtDNS.Location = new System.Drawing.Point(120, 128);
     this.edtDNS.Name     = "edtDNS";
     this.edtDNS.Size     = new System.Drawing.Size(100, 20);
     this.edtDNS.TabIndex = 9;
     this.edtDNS.Text     = "192.168.0.1";
     //
     // edtDNSTimeOut
     //
     this.edtDNSTimeOut.Location = new System.Drawing.Point(344, 128);
     this.edtDNSTimeOut.Name     = "edtDNSTimeOut";
     this.edtDNSTimeOut.Size     = new System.Drawing.Size(56, 20);
     this.edtDNSTimeOut.TabIndex = 10;
     this.edtDNSTimeOut.Text     = "5";
     //
     // edtSender
     //
     this.edtSender.Location = new System.Drawing.Point(120, 152);
     this.edtSender.Name     = "edtSender";
     this.edtSender.Size     = new System.Drawing.Size(280, 20);
     this.edtSender.TabIndex = 11;
     this.edtSender.Text     = "*****@*****.**";
     //
     // edtRecipient
     //
     this.edtRecipient.Location = new System.Drawing.Point(120, 176);
     this.edtRecipient.Name     = "edtRecipient";
     this.edtRecipient.Size     = new System.Drawing.Size(280, 20);
     this.edtRecipient.TabIndex = 12;
     this.edtRecipient.Text     = "[email protected],[email protected]";
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(120, 200);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.Size     = new System.Drawing.Size(280, 20);
     this.edtSubject.TabIndex = 13;
     this.edtSubject.Text     = "smtp relaying test";
     //
     // memText
     //
     this.memText.Location   = new System.Drawing.Point(16, 240);
     this.memText.Multiline  = true;
     this.memText.Name       = "memText";
     this.memText.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memText.Size       = new System.Drawing.Size(384, 128);
     this.memText.TabIndex   = 14;
     this.memText.Text       = "This is a test message";
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(136, 376);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(136, 23);
     this.btnSend.TabIndex = 15;
     this.btnSend.Text     = "Send Mail";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // smtpRelay1
     //
     this.smtpRelay1.DnsServer = null;
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2006, 5, 5, 17, 45, 14, 968);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(424, 414);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.memText);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.edtRecipient);
     this.Controls.Add(this.edtSender);
     this.Controls.Add(this.edtDNSTimeOut);
     this.Controls.Add(this.edtDNS);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "SMTP Relay demo";
     ((System.ComponentModel.ISupportInitialize)(this.smtpRelay1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.edtUser       = new System.Windows.Forms.TextBox();
     this.label2        = new System.Windows.Forms.Label();
     this.btnLogout     = new System.Windows.Forms.Button();
     this.btnLogin      = new System.Windows.Forms.Button();
     this.label5        = new System.Windows.Forms.Label();
     this.label6        = new System.Windows.Forms.Label();
     this.lvMessages    = new System.Windows.Forms.ListView();
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label7        = new System.Windows.Forms.Label();
     this.edtFrom       = new System.Windows.Forms.TextBox();
     this.edtSubject    = new System.Windows.Forms.TextBox();
     this.label8        = new System.Windows.Forms.Label();
     this.memBody       = new System.Windows.Forms.TextBox();
     this.imap          = new CleverComponents.InetSuite.Imap4();
     this.mailMessage   = new CleverComponents.InetSuite.MailMessage();
     this.pictureBox1   = new System.Windows.Forms.PictureBox();
     this.tvFolders     = new System.Windows.Forms.ListBox();
     this.oAuth         = new CleverComponents.InetSuite.OAuth();
     ((System.ComponentModel.ISupportInitialize)(this.imap)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(58, 95);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(124, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "*****@*****.**";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(12, 98);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 7;
     this.label2.Text     = "User";
     //
     // btnLogout
     //
     this.btnLogout.Location = new System.Drawing.Point(529, 91);
     this.btnLogout.Name     = "btnLogout";
     this.btnLogout.Size     = new System.Drawing.Size(82, 26);
     this.btnLogout.TabIndex = 7;
     this.btnLogout.Text     = "Logout";
     this.btnLogout.Click   += new System.EventHandler(this.btnLogout_Click);
     //
     // btnLogin
     //
     this.btnLogin.Location = new System.Drawing.Point(436, 91);
     this.btnLogin.Name     = "btnLogin";
     this.btnLogin.Size     = new System.Drawing.Size(82, 26);
     this.btnLogin.TabIndex = 6;
     this.btnLogin.Text     = "Login";
     this.btnLogin.Click   += new System.EventHandler(this.btnLogin_Click);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(12, 131);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(80, 17);
     this.label5.TabIndex = 22;
     this.label5.Text     = "GMail Folders";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(193, 131);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 17);
     this.label6.TabIndex = 23;
     this.label6.Text     = "Messages";
     //
     // lvMessages
     //
     this.lvMessages.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader2,
         this.columnHeader3,
         this.columnHeader4,
         this.columnHeader5
     });
     this.lvMessages.FullRowSelect = true;
     this.lvMessages.HideSelection = false;
     this.lvMessages.Location      = new System.Drawing.Point(196, 151);
     this.lvMessages.Name          = "lvMessages";
     this.lvMessages.Size          = new System.Drawing.Size(415, 115);
     this.lvMessages.TabIndex      = 9;
     this.lvMessages.UseCompatibleStateImageBehavior = false;
     this.lvMessages.View = System.Windows.Forms.View.Details;
     this.lvMessages.SelectedIndexChanged += new System.EventHandler(this.lvMessages_SelectedIndexChanged);
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Subject";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "From";
     this.columnHeader3.Width = 100;
     //
     // columnHeader4
     //
     this.columnHeader4.Text  = "Date";
     this.columnHeader4.Width = 80;
     //
     // columnHeader5
     //
     this.columnHeader5.Text = "Size";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(193, 282);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 23);
     this.label7.TabIndex = 25;
     this.label7.Text     = "From";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(247, 279);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.ReadOnly = true;
     this.edtFrom.Size     = new System.Drawing.Size(364, 20);
     this.edtFrom.TabIndex = 10;
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(247, 306);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.ReadOnly = true;
     this.edtSubject.Size     = new System.Drawing.Size(364, 20);
     this.edtSubject.TabIndex = 11;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(193, 309);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 23);
     this.label8.TabIndex = 27;
     this.label8.Text     = "Subject";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(196, 335);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ReadOnly   = true;
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(415, 106);
     this.memBody.TabIndex   = 12;
     //
     // mailMessage
     //
     this.mailMessage.Date       = new System.DateTime(2007, 1, 10, 13, 51, 45, 827);
     this.mailMessage.From.Email = "";
     this.mailMessage.From.Name  = "";
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = global::GMailIMAP.Properties.Resources.background_net;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(623, 78);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 28;
     this.pictureBox1.TabStop  = false;
     //
     // tvFolders
     //
     this.tvFolders.Location              = new System.Drawing.Point(15, 151);
     this.tvFolders.Name                  = "tvFolders";
     this.tvFolders.Size                  = new System.Drawing.Size(167, 290);
     this.tvFolders.TabIndex              = 8;
     this.tvFolders.SelectedIndexChanged += new System.EventHandler(this.tvFolders_SelectedIndexChanged);
     //
     // oAuth
     //
     this.oAuth.AuthUrl      = null;
     this.oAuth.ClientID     = null;
     this.oAuth.ClientSecret = null;
     this.oAuth.Password     = null;
     this.oAuth.RedirectUrl  = null;
     this.oAuth.Scope        = null;
     this.oAuth.State        = null;
     this.oAuth.TokenUrl     = null;
     this.oAuth.UserName     = null;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(623, 452);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.lvMessages);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.tvFolders);
     this.Controls.Add(this.btnLogout);
     this.Controls.Add(this.btnLogin);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.label2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "GMAIL IMAP client with OAuth - Sample";
     ((System.ComponentModel.ISupportInitialize)(this.imap)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.edtNewsServer  = new System.Windows.Forms.TextBox();
     this.cbNewsGroup    = new System.Windows.Forms.ComboBox();
     this.btnConnect     = new System.Windows.Forms.Button();
     this.btnGetArticles = new System.Windows.Forms.Button();
     this.btnPostNew     = new System.Windows.Forms.Button();
     this.btnReply       = new System.Windows.Forms.Button();
     this.tvArticles     = new System.Windows.Forms.TreeView();
     this.memBody        = new System.Windows.Forms.TextBox();
     this.nntp1          = new CleverComponents.InetSuite.Nntp();
     this.mailMessage1   = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(24, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(72, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "News Server";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(24, 51);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(72, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "News Group";
     //
     // edtNewsServer
     //
     this.edtNewsServer.Location = new System.Drawing.Point(104, 16);
     this.edtNewsServer.Name     = "edtNewsServer";
     this.edtNewsServer.Size     = new System.Drawing.Size(352, 20);
     this.edtNewsServer.TabIndex = 2;
     this.edtNewsServer.Text     = "msnews.microsoft.com";
     //
     // cbNewsGroup
     //
     this.cbNewsGroup.Enabled  = false;
     this.cbNewsGroup.Location = new System.Drawing.Point(104, 48);
     this.cbNewsGroup.Name     = "cbNewsGroup";
     this.cbNewsGroup.Size     = new System.Drawing.Size(352, 21);
     this.cbNewsGroup.TabIndex = 3;
     //
     // btnConnect
     //
     this.btnConnect.Location = new System.Drawing.Point(24, 88);
     this.btnConnect.Name     = "btnConnect";
     this.btnConnect.Size     = new System.Drawing.Size(75, 23);
     this.btnConnect.TabIndex = 4;
     this.btnConnect.Text     = "Connect";
     this.btnConnect.Click   += new System.EventHandler(this.btnConnect_Click);
     //
     // btnGetArticles
     //
     this.btnGetArticles.Enabled  = false;
     this.btnGetArticles.Location = new System.Drawing.Point(112, 88);
     this.btnGetArticles.Name     = "btnGetArticles";
     this.btnGetArticles.Size     = new System.Drawing.Size(75, 23);
     this.btnGetArticles.TabIndex = 5;
     this.btnGetArticles.Text     = "Get Articles";
     this.btnGetArticles.Click   += new System.EventHandler(this.btnGetArticles_Click);
     //
     // btnPostNew
     //
     this.btnPostNew.Enabled  = false;
     this.btnPostNew.Location = new System.Drawing.Point(296, 88);
     this.btnPostNew.Name     = "btnPostNew";
     this.btnPostNew.Size     = new System.Drawing.Size(75, 23);
     this.btnPostNew.TabIndex = 6;
     this.btnPostNew.Text     = "Post New...";
     this.btnPostNew.Click   += new System.EventHandler(this.btnPostNew_Click);
     //
     // btnReply
     //
     this.btnReply.Enabled  = false;
     this.btnReply.Location = new System.Drawing.Point(384, 88);
     this.btnReply.Name     = "btnReply";
     this.btnReply.Size     = new System.Drawing.Size(75, 23);
     this.btnReply.TabIndex = 7;
     this.btnReply.Text     = "Reply...";
     this.btnReply.Click   += new System.EventHandler(this.btnReply_Click);
     //
     // tvArticles
     //
     this.tvArticles.Location     = new System.Drawing.Point(24, 120);
     this.tvArticles.Name         = "tvArticles";
     this.tvArticles.Size         = new System.Drawing.Size(432, 97);
     this.tvArticles.TabIndex     = 8;
     this.tvArticles.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvArticles_AfterSelect);
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(24, 224);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(432, 144);
     this.memBody.TabIndex   = 9;
     //
     // nntp1
     //
     this.nntp1.GroupOverviewing += new CleverComponents.InetSuite.GroupOverviewEventHandler(this.nntp1_GroupOverview);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2006, 5, 5, 16, 32, 5, 968);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(480, 382);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.tvArticles);
     this.Controls.Add(this.btnReply);
     this.Controls.Add(this.btnPostNew);
     this.Controls.Add(this.btnGetArticles);
     this.Controls.Add(this.btnConnect);
     this.Controls.Add(this.cbNewsGroup);
     this.Controls.Add(this.edtNewsServer);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "News Group Reader";
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.memBody      = new System.Windows.Forms.TextBox();
     this.edtSubject   = new System.Windows.Forms.TextBox();
     this.label8       = new System.Windows.Forms.Label();
     this.edtFrom      = new System.Windows.Forms.TextBox();
     this.label7       = new System.Windows.Forms.Label();
     this.edtTo        = new System.Windows.Forms.TextBox();
     this.label5       = new System.Windows.Forms.Label();
     this.btnSend      = new System.Windows.Forms.Button();
     this.smtp1        = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1 = new CleverComponents.InetSuite.MailMessage();
     this.oAuth1       = new CleverComponents.InetSuite.OAuth();
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(13, 175);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(593, 176);
     this.memBody.TabIndex   = 9;
     this.memBody.Text       = resources.GetString("memBody.Text");
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(64, 145);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.Size     = new System.Drawing.Size(542, 20);
     this.edtSubject.TabIndex = 8;
     this.edtSubject.Text     = "ABC Company: New Catalog";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 120);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 13);
     this.label8.TabIndex = 39;
     this.label8.Text     = "To";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(64, 89);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.Size     = new System.Drawing.Size(542, 20);
     this.edtFrom.TabIndex = 6;
     this.edtFrom.Text     = "*****@*****.**";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 92);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 16);
     this.label7.TabIndex = 38;
     this.label7.Text     = "From";
     //
     // edtTo
     //
     this.edtTo.Location = new System.Drawing.Point(64, 117);
     this.edtTo.Name     = "edtTo";
     this.edtTo.Size     = new System.Drawing.Size(542, 20);
     this.edtTo.TabIndex = 7;
     this.edtTo.Text     = "*****@*****.**";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 148);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(48, 15);
     this.label5.TabIndex = 41;
     this.label5.Text     = "Subject";
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(477, 360);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(129, 28);
     this.btnSend.TabIndex = 10;
     this.btnSend.Text     = "Send";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2007, 1, 10, 23, 13, 23, 984);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // oAuth1
     //
     this.oAuth1.AuthUrl      = null;
     this.oAuth1.ClientID     = null;
     this.oAuth1.ClientSecret = null;
     this.oAuth1.Password     = null;
     this.oAuth1.RedirectUrl  = null;
     this.oAuth1.Scope        = null;
     this.oAuth1.State        = null;
     this.oAuth1.TokenUrl     = null;
     this.oAuth1.UserName     = null;
     //
     // pictureBox1
     //
     this.pictureBox1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.pictureBox1.Image    = global::GMailSMTP.Properties.Resources.background_net;
     this.pictureBox1.Location = new System.Drawing.Point(0, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(618, 78);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 42;
     this.pictureBox1.TabStop  = false;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(618, 394);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.edtTo);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "GMAIL SMTP client with OAuth - Sample";
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1          = new System.Windows.Forms.Label();
     this.label2          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.label4          = new System.Windows.Forms.Label();
     this.label5          = new System.Windows.Forms.Label();
     this.label6          = new System.Windows.Forms.Label();
     this.label7          = new System.Windows.Forms.Label();
     this.lblProgress     = new System.Windows.Forms.Label();
     this.edtServer       = new System.Windows.Forms.TextBox();
     this.edtUser         = new System.Windows.Forms.TextBox();
     this.edtPassword     = new System.Windows.Forms.TextBox();
     this.edtFrom         = new System.Windows.Forms.TextBox();
     this.edtTo           = new System.Windows.Forms.TextBox();
     this.memBody         = new System.Windows.Forms.TextBox();
     this.edtAttachment   = new System.Windows.Forms.TextBox();
     this.btnBrowse       = new System.Windows.Forms.Button();
     this.btnSend         = new System.Windows.Forms.Button();
     this.btnReceive      = new System.Windows.Forms.Button();
     this.btnStop         = new System.Windows.Forms.Button();
     this.progressBar1    = new System.Windows.Forms.ProgressBar();
     this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
     this.pop31           = new CleverComponents.InetSuite.Pop3();
     this.smtp1           = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1    = new CleverComponents.InetSuite.MailMessage();
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 19);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Server";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 43);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(64, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "User";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 67);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(64, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Password";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 91);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(64, 16);
     this.label4.TabIndex = 3;
     this.label4.Text     = "From";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 115);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(48, 16);
     this.label5.TabIndex = 4;
     this.label5.Text     = "To";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 136);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(56, 16);
     this.label6.TabIndex = 5;
     this.label6.Text     = "Message";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 235);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(64, 17);
     this.label7.TabIndex = 6;
     this.label7.Text     = "Attachment";
     //
     // lblProgress
     //
     this.lblProgress.Location = new System.Drawing.Point(16, 296);
     this.lblProgress.Name     = "lblProgress";
     this.lblProgress.Size     = new System.Drawing.Size(48, 16);
     this.lblProgress.TabIndex = 7;
     this.lblProgress.Text     = "%";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(80, 16);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(272, 20);
     this.edtServer.TabIndex = 8;
     this.edtServer.Text     = "localhost";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(80, 40);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(120, 20);
     this.edtUser.TabIndex = 9;
     this.edtUser.Text     = "CleverTester";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(80, 64);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(120, 20);
     this.edtPassword.TabIndex     = 10;
     this.edtPassword.Text         = "clevertester";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(80, 88);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.Size     = new System.Drawing.Size(272, 20);
     this.edtFrom.TabIndex = 11;
     this.edtFrom.Text     = "*****@*****.**";
     //
     // edtTo
     //
     this.edtTo.Location = new System.Drawing.Point(80, 112);
     this.edtTo.Name     = "edtTo";
     this.edtTo.Size     = new System.Drawing.Size(272, 20);
     this.edtTo.TabIndex = 12;
     this.edtTo.Text     = "*****@*****.**";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(80, 136);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(272, 88);
     this.memBody.TabIndex   = 13;
     this.memBody.Text       = "Message text follows here";
     //
     // edtAttachment
     //
     this.edtAttachment.Location = new System.Drawing.Point(80, 232);
     this.edtAttachment.Name     = "edtAttachment";
     this.edtAttachment.Size     = new System.Drawing.Size(232, 20);
     this.edtAttachment.TabIndex = 14;
     //
     // btnBrowse
     //
     this.btnBrowse.Location = new System.Drawing.Point(320, 232);
     this.btnBrowse.Name     = "btnBrowse";
     this.btnBrowse.Size     = new System.Drawing.Size(32, 23);
     this.btnBrowse.TabIndex = 15;
     this.btnBrowse.Text     = "...";
     this.btnBrowse.Click   += new System.EventHandler(this.btnBrowse_Click);
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(80, 264);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(75, 23);
     this.btnSend.TabIndex = 16;
     this.btnSend.Text     = "Send";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // btnReceive
     //
     this.btnReceive.Location = new System.Drawing.Point(176, 264);
     this.btnReceive.Name     = "btnReceive";
     this.btnReceive.Size     = new System.Drawing.Size(75, 23);
     this.btnReceive.TabIndex = 17;
     this.btnReceive.Text     = "Receive";
     this.btnReceive.Click   += new System.EventHandler(this.btnReceive_Click);
     //
     // btnStop
     //
     this.btnStop.Location = new System.Drawing.Point(277, 264);
     this.btnStop.Name     = "btnStop";
     this.btnStop.Size     = new System.Drawing.Size(75, 23);
     this.btnStop.TabIndex = 18;
     this.btnStop.Text     = "Stop";
     this.btnStop.Click   += new System.EventHandler(this.btnStop_Click);
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(64, 296);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(288, 16);
     this.progressBar1.TabIndex = 19;
     //
     // pop31
     //
     this.pop31.Progress += new CleverComponents.InetSuite.ProgressEventHandler(this.pop31_Progress);
     //
     // smtp1
     //
     this.smtp1.Progress += new CleverComponents.InetSuite.ProgressEventHandler(this.smtp1_Progress);
     //
     // mailMessage1
     //
     this.mailMessage1.Date            = new System.DateTime(2006, 5, 4, 22, 40, 1, 608);
     this.mailMessage1.SaveAttachment += new CleverComponents.InetSuite.GetBodyStreamEventHandler(this.mailMessage1_SaveAttachment);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(368, 326);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.btnStop);
     this.Controls.Add(this.btnReceive);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.btnBrowse);
     this.Controls.Add(this.edtAttachment);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtTo);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.lblProgress);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Mail Send / Receive Progress";
     ((System.ComponentModel.ISupportInitialize)(this.pop31)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.edtPort        = new System.Windows.Forms.TextBox();
     this.label4         = new System.Windows.Forms.Label();
     this.edtPassword    = new System.Windows.Forms.TextBox();
     this.edtUser        = new System.Windows.Forms.TextBox();
     this.edtServer      = new System.Windows.Forms.TextBox();
     this.label3         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label1         = new System.Windows.Forms.Label();
     this.memBody        = new System.Windows.Forms.TextBox();
     this.edtSubject     = new System.Windows.Forms.TextBox();
     this.label8         = new System.Windows.Forms.Label();
     this.edtFrom        = new System.Windows.Forms.TextBox();
     this.label7         = new System.Windows.Forms.Label();
     this.edtTo          = new System.Windows.Forms.TextBox();
     this.label5         = new System.Windows.Forms.Label();
     this.btnSend        = new System.Windows.Forms.Button();
     this.smtp1          = new CleverComponents.InetSuite.Smtp();
     this.mailMessage1   = new CleverComponents.InetSuite.MailMessage();
     this.edtProxyPort   = new System.Windows.Forms.TextBox();
     this.label6         = new System.Windows.Forms.Label();
     this.edtProxyServer = new System.Windows.Forms.TextBox();
     this.label9         = new System.Windows.Forms.Label();
     this.httpProxy1     = new CleverComponents.InetSuite.HttpProxy();
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).BeginInit();
     this.SuspendLayout();
     //
     // edtPort
     //
     this.edtPort.Location = new System.Drawing.Point(80, 34);
     this.edtPort.Name     = "edtPort";
     this.edtPort.Size     = new System.Drawing.Size(48, 20);
     this.edtPort.TabIndex = 2;
     this.edtPort.Text     = "25";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(9, 37);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(48, 16);
     this.label4.TabIndex = 21;
     this.label4.Text     = "Port";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(80, 86);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(182, 20);
     this.edtPassword.TabIndex     = 5;
     this.edtPassword.Text         = "clevertester";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(80, 60);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(182, 20);
     this.edtUser.TabIndex = 4;
     this.edtUser.Text     = "CleverTester";
     //
     // edtServer
     //
     this.edtServer.Location = new System.Drawing.Point(80, 8);
     this.edtServer.Name     = "edtServer";
     this.edtServer.Size     = new System.Drawing.Size(209, 20);
     this.edtServer.TabIndex = 1;
     this.edtServer.Text     = "smpt.example.com";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(9, 89);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(54, 16);
     this.label3.TabIndex = 20;
     this.label3.Text     = "Password";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(9, 63);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 19;
     this.label2.Text     = "User";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(9, 11);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(63, 16);
     this.label1.TabIndex = 18;
     this.label1.Text     = "SMTP Host";
     //
     // memBody
     //
     this.memBody.Location   = new System.Drawing.Point(12, 206);
     this.memBody.Multiline  = true;
     this.memBody.Name       = "memBody";
     this.memBody.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memBody.Size       = new System.Drawing.Size(584, 165);
     this.memBody.TabIndex   = 9;
     this.memBody.Text       = resources.GetString("memBody.Text");
     //
     // edtSubject
     //
     this.edtSubject.Location = new System.Drawing.Point(80, 180);
     this.edtSubject.Name     = "edtSubject";
     this.edtSubject.Size     = new System.Drawing.Size(516, 20);
     this.edtSubject.TabIndex = 8;
     this.edtSubject.Text     = "ABC Company: New Catalog";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(9, 157);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(48, 13);
     this.label8.TabIndex = 39;
     this.label8.Text     = "To";
     //
     // edtFrom
     //
     this.edtFrom.Location = new System.Drawing.Point(80, 128);
     this.edtFrom.Name     = "edtFrom";
     this.edtFrom.Size     = new System.Drawing.Size(516, 20);
     this.edtFrom.TabIndex = 6;
     this.edtFrom.Text     = "*****@*****.**";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(9, 131);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 16);
     this.label7.TabIndex = 38;
     this.label7.Text     = "From";
     //
     // edtTo
     //
     this.edtTo.Location = new System.Drawing.Point(80, 154);
     this.edtTo.Name     = "edtTo";
     this.edtTo.Size     = new System.Drawing.Size(516, 20);
     this.edtTo.TabIndex = 7;
     this.edtTo.Text     = "*****@*****.**";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(9, 183);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(48, 15);
     this.label5.TabIndex = 41;
     this.label5.Text     = "Subject";
     //
     // btnSend
     //
     this.btnSend.Location = new System.Drawing.Point(479, 387);
     this.btnSend.Name     = "btnSend";
     this.btnSend.Size     = new System.Drawing.Size(117, 23);
     this.btnSend.TabIndex = 10;
     this.btnSend.Text     = "Send";
     this.btnSend.Click   += new System.EventHandler(this.btnSend_Click);
     //
     // mailMessage1
     //
     this.mailMessage1.Date       = new System.DateTime(2007, 1, 10, 23, 13, 23, 984);
     this.mailMessage1.From.Email = "";
     this.mailMessage1.From.Name  = "";
     //
     // edtProxyPort
     //
     this.edtProxyPort.Location = new System.Drawing.Point(387, 34);
     this.edtProxyPort.Name     = "edtProxyPort";
     this.edtProxyPort.Size     = new System.Drawing.Size(48, 20);
     this.edtProxyPort.TabIndex = 43;
     this.edtProxyPort.Text     = "8080";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(316, 37);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(48, 16);
     this.label6.TabIndex = 45;
     this.label6.Text     = "Port";
     //
     // edtProxyServer
     //
     this.edtProxyServer.Location = new System.Drawing.Point(387, 8);
     this.edtProxyServer.Name     = "edtProxyServer";
     this.edtProxyServer.Size     = new System.Drawing.Size(209, 20);
     this.edtProxyServer.TabIndex = 42;
     this.edtProxyServer.Text     = "proxy";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(316, 11);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(63, 16);
     this.label9.TabIndex = 44;
     this.label9.Text     = "Proxy Host";
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(609, 422);
     this.Controls.Add(this.edtProxyPort);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.edtProxyServer);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.btnSend);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.edtTo);
     this.Controls.Add(this.memBody);
     this.Controls.Add(this.edtSubject);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtFrom);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.edtPort);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.edtServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "Form1";
     this.Text            = "SMTP Client over HTTP Connect Proxy";
     ((System.ComponentModel.ISupportInitialize)(this.smtp1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mailMessage1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }