private void Button1_Click(object sender, EventArgs e) { FormParent parent = (FormParent)this.MdiParent; String id = textBox1.Text; String password = textBox2.Text; if (id == "kasir") { parent.goTo(-1); parent.createMenu("kasir"); } else if (id == "dokter" || id == "suster") { parent.goTo(-1); parent.createMenu("perawat"); } else if (id == "warehouse") { parent.goTo(-1); parent.createMenu("warehouse"); } else if (id == "apoteker") { parent.goTo(-1); parent.createMenu("apoteker"); } else { label4.Text = "Cek kembali ID/Password anda!"; } }
private void Button1_Click(object sender, EventArgs e) { FormParent parent = (FormParent)this.MdiParent; parent.goTo(-1); parent.createMenu("admin"); }