Пример #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();
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="LoginDetails"></param>
 public SendEmail(ModelLoginDetails LoginDetails)
 {
     _loginDetails = LoginDetails;
 }