示例#1
0
        private void ButtonClick(object sender, RoutedEventArgs e)
        {
            try
            {
                if (sender.Equals(btn_Login))
                {
                    //System.Windows.Forms.DialogResult dialog = new System.Windows.Forms.DialogResult();
                    //dialog = System.Windows.Forms.DialogResult.OK;
                    DialogResult = true;

                    string userID   = txt_UserID.Text;
                    string password = password_box.Password;
                    LogInRequest?.Invoke(this, new LogInRequestEventArgs(userID, password));
                }
            }
            catch (Exception ex) { logger.Error(ex, "Exception"); }
        }
 public void EmitLoginRequest()
 {
     LogInRequest?.Invoke(this, EventArgs.Empty);
 }