Пример #1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (Entity.verifyUsernamePassword(txtUsername.Text, txtPassword.Text))
     {
         HomeHbC screen = new HomeHbC(parent);
         parent.SetUserControl(screen);
     }
     else
     {
         MessageBox.Show("Invalid username or password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
         Login.refreshPanel(this);
     }
 }
Пример #2
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     HomeHbC home = new HomeHbC(parent);
     home.txtSurname.Text = this.surname2;
     parent.SetUserControl(home);
 }