예제 #1
0
 private void btThem_Click(object sender, EventArgs e)
 {
     if (luedDuAn.EditValue != null)
     {
         FrmHTCV frm = new FrmHTCV(Int32.Parse(luedDuAn.EditValue.ToString()));
         frm.Show();
     }
     else
     {
         FrmHTCV frm = new FrmHTCV(-1);
         frm.Show();
     }
 }
예제 #2
0
 private void btSua_Click(object sender, EventArgs e)
 {
     try
     {
         string  id  = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "ID").ToString();
         FrmHTCV frm = new FrmHTCV(id);
         frm.Show();
     }
     catch (Exception ex)
     {
         lg.Error(ex);
     }
 }