Ejemplo n.º 1
0
 void smtp_AuthenticationFinished(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         Email_Client.AuthenticateEventHandler auth = new Email_Client.AuthenticateEventHandler(this.smtp_AuthenticationFinished);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verification is completed";
     }
 }
Ejemplo n.º 2
0
 private void pop_AuthenticationBegan(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         Email_Client.AuthenticateEventHandler auth = new Email_Client.AuthenticateEventHandler(this.pop_AuthenticationBegan);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verifying user name and password";
     }
 }