private void UpdateShift() { if (this.gridShiftList.ActiveRow != null) { frmShiftEdit frm = new frmShiftEdit(); frm.Shift = this.gridShiftList.ActiveRow.Cells["SHIFT"].Value.ToString(); frm.ShowDialog(this); ShowShiftList(); } }
private void NewShift() { frmShiftEdit frm = new frmShiftEdit(); frm.ShowDialog(this); ShowShiftList(); }