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"; } }
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"; } }