private void button2_Click(object sender, EventArgs e) { if (txtUsername.Text == "admin" && txtPassword.Text == "admin") { MessageBox.Show("Login Berhasil", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); FormMenuUtama fm = new FormMenuUtama(); this.Hide(); fm.Show(); } else { MessageBox.Show("Login Gagal", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); txtUsername.Text = ""; txtPassword.Text = ""; txtUsername.Focus(); } }
public FormListWiup(FormMenuUtama formMenuUtama) { InitializeComponent(); dbConnect = new DBConnect(); this.formMenuUtama = formMenuUtama; }