private void btnInputPegawai_Click(object sender, EventArgs e) { var frmPegawai = new FrmPegawai(); frmPegawai._aksi = "insert"; frmPegawai.ShowDialog(); }
private void materialRaisedButton2_Click(object sender, EventArgs e) { if (_table == "pegawai") { FrmPegawai fp = new FrmPegawai(); fp._aksi = "update"; fp._id = _id; fp.ShowDialog(); this.Close(); } }