示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "Aptean" && textBox2.Text == "Aptean" && comboBox1.SelectedIndex == 0 || comboBox1.Text=="Bank Manager")
     {
         BankManagerDashboard nextForm = new BankManagerDashboard();
         this.Hide();
         nextForm.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show(" Authentication Failed");
     }
        // if (comboBox1.SelectedIndex == 0)
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "Aptean" && textBox2.Text == "Aptean" && comboBox1.SelectedIndex == 0 || comboBox1.Text == "Bank Manager")
     {
         BankManagerDashboard nextForm = new BankManagerDashboard();
         this.Hide();
         nextForm.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show(" Authentication Failed");
     }
     // if (comboBox1.SelectedIndex == 0)
 }