protected override int sua() { int obj = 0; try { Biencucbo.hdong = 1; Biencucbo.obj = 0; Biencucbo.ma = gv.GetFocusedRowCellValue("key").ToString(); f_themkhuvuc frm = new f_themkhuvuc(); frm.ShowDialog(); obj = Biencucbo.obj; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } return(obj); }
protected override int them() { int obj = 0; try { Biencucbo.hdong = 0; Biencucbo.obj = 0; f_themkhuvuc frm = new f_themkhuvuc(); frm.ShowDialog(); obj = Biencucbo.obj; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } return(obj); }