private void BtnTambah_Click(object sender, EventArgs e) { FrmMenuTambah f = new FrmMenuTambah(); if (f.ShowDialog() == DialogResult.Yes) { BtnCari_Click(sender, e); } }
private void BtnUbah_Click(object sender, EventArgs e) { if (Dgv.CurrentCell != null) { FrmMenuTambah f = new FrmMenuTambah(); f.Edit = true; f.TxtKode.Text = Dgv[0, Dgv.CurrentCell.RowIndex].Value.ToString(); if (f.ShowDialog() == DialogResult.Yes) { BtnCari_Click(sender, e); } } }