Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form menumanajer = new MenuManajer();

            this.Dispose(true);
            menumanajer.Show();
        }
Пример #2
0
 private void loginButton_Click(object sender, EventArgs e)
 {
     if (userTextBox.Text == "agen" && passwordTextBox.Text == "agen")
     {
         Form pemesananTiket = new Tiket();
         this.Dispose(false);
         pemesananTiket.Show();
     }
     else if (userTextBox.Text == "owner" && passwordTextBox.Text == "owner")
     {
         Form owner = new laporanForm();
         this.Dispose(false);
         owner.Show();
     }
     else if (userTextBox.Text == "manajer" && passwordTextBox.Text == "manajer")
     {
         Form menumanajer = new MenuManajer();
         this.Dispose(false);
         menumanajer.Show();
     }
     else
     {
         MessageBox.Show("User atau password salah");
     }
 }