Exemplo n.º 1
0
 private void btn_edit_Click(object sender, EventArgs e)
 {
     if (this.dgvData.SelectedRows.Count > 0)
     {
         FrmEditDataBarang form = new FrmEditDataBarang(this.dgvData.SelectedRows[0].Cells[0].Value.ToString().Trim());
         if (form.Run(form))
         {
             QueryData(new Add {
                 Code = "", Name = "", Price = 0
             });
         }
     }
 }
Exemplo n.º 2
0
 public bool Run(FrmEditDataBarang form)
 {
     form.ShowDialog();
     return(_result);
 }