Exemple #1
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     if (loginMailTextBox.Text.Length > 0 && loginPassTextBox.Text.Length > 0)
     {
         this.Close();
         PerformLoginEventArgs args = new PerformLoginEventArgs
         {
             Email    = loginMailTextBox.Text,
             Password = loginPassTextBox.Text
         };
         OnPerformLogin(args);
     }
     else
     {
         MessageBox.Show("Fill in all the fields", "Error");
     }
 }
Exemple #2
0
 private void LoginForm_PerformLogin1(object sender, PerformLoginEventArgs e)
 {
     Login(e.Email, e.Password);
 }
Exemple #3
0
 protected virtual void OnPerformLogin(PerformLoginEventArgs e)
 {
     PerformLogin?.Invoke(this, e);
 }