示例#1
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            ModelLoginDetails loginDetails = new ModelLoginDetails
                                                 {
                                                     UserName = this.textBoxUserName.Text,
                                                     Domain = this.textBoxDomain.Text,
                                                     ExchangeServerAddress = this._nameOfExchangeServer,
                                                     Password = this.textBoxPassword.Text
                                                 };

            _send = new SendEmail(loginDetails);

            this.Hide();
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="LoginDetails"></param>
 public SendEmail(ModelLoginDetails LoginDetails)
 {
     _loginDetails = LoginDetails;
 }