Esempio n. 1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (txtUser.Text == user && txtPassword.Text == password)
     {
         Cadastro C = new Cadastro();
         C.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("User or Password incorrect");
     }
 }
Esempio n. 2
0
 private void btnCriarConta_Click(object sender, EventArgs e)
 {
     if (txtUser.Text == user && txtPassword.Text == password)
     {
         Cadastro C = new Cadastro();
         C.Show();
         this.Show();
     }
     else
     {
         MessageBox.Show(Helpers.Helper.EPassword());
         btnOk.Enabled         = false;
         btnRPassword.Visible  = true;
         btnCriarConta.Enabled = false;
     }
 }