示例#1
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     FrmGiamGiaEdit f = new FrmGiamGiaEdit();
     if (f.ShowDialog() == DialogResult.OK) {
         LoadData();
     }
 }
示例#2
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0) {
         var gg = (GiamGia)dataGridView1.SelectedRows[0].DataBoundItem;
         FrmGiamGiaEdit f = new FrmGiamGiaEdit(gg);
         if (f.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
 }