Example #1
0
 private void pop_ConnectionEstablishing(object sender, string Server, int Port)
 {
     if (this.statusStrip.InvokeRequired)
     {
         Email_Client.ConnectEventHandler con = new Email_Client.ConnectEventHandler(this.pop_ConnectionEstablishing);
         this.Invoke(con, new object[] { sender, Server, Port });
     }
     else
     {
         this.ProgressLabel.Text = "Connecting to pop server \"" + Server + "\" on port " + Port;
     }
 }
Example #2
0
 void smtp_ConnectionEstablished(object sender, string Server, int Port)
 {
     if (this.statusStrip.InvokeRequired)
     {
         Email_Client.ConnectEventHandler con = new Email_Client.ConnectEventHandler(this.smtp_ConnectionEstablished);
         this.Invoke(con, new object[] { sender, Server, Port });
     }
     else
     {
         this.ProgressLabel.Text = "Connection is established with the smtp server \"" + Server + "\"";
     }
 }