Пример #1
0
        private void BtnTambah_Click(object sender, EventArgs e)
        {
            FrmMenuTambah f = new FrmMenuTambah();

            if (f.ShowDialog() == DialogResult.Yes)
            {
                BtnCari_Click(sender, e);
            }
        }
Пример #2
0
 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);
         }
     }
 }