private void OnConnect(object sender) { string email = ""; if (sender == btConnectEmail) { email = this.edEmail.Text; } else if (sender == btConnectEmail2) { email = this.edEmail2.Text; } try { email = email.Trim(); var mailer = new EmailConnectionManager(email); mailer.Open(); } catch (Exception exc) { Util.MsgError(this, AppInfo.Name, exc.Message); } return; }
private void OnConnect(object sender) { string email = ""; if ( sender == btConnectEmail ) { email = this.edEmail.Text; } else if ( sender == btConnectEmail2 ) { email = this.edEmail2.Text; } try { email = email.Trim(); var mailer = new EmailConnectionManager( email ); mailer.Open(); } catch(Exception exc) { Util.MsgError( this, AppInfo.Name, exc.Message ); } return; }