private void btn_kembali_Click(object sender, EventArgs e)
        {
            FormAdmin formadmin = new FormAdmin();

            formadmin.Show();
            this.Hide();
        }
 private void btn_login_admin_Click(object sender, EventArgs e)
 {
     if (box_id.Text == "admin1" && box_pass.Text == "jualanburung")
     {
         FormAdmin form_admin = new FormAdmin();
         form_admin.Show();
         this.Visible = false;
         user         = "******";
     }
     else
     {
         MessageBox.Show("Username atau password..", "Login Gagal", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btn_login_owner_Click(object sender, EventArgs e)
 {
     if (box_kode.Text == "901299")
     {
         FormAdmin form_admin = new FormAdmin();
         form_admin.Show();
         this.Hide();
         user = "******";
     }
     else
     {
         MessageBox.Show("Kode salah..", "Login Gagal", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #4
0
 private void FormAdmin_Load(object sender, EventArgs e)
 {
     FormAdmin formadmin = new FormAdmin();
 }