private void dgvEmployee_MouseDoubleClick(object sender, MouseEventArgs e) { double id = Convert.ToDouble(dgvEmployee.SelectedRows[0].Cells["IDS"].Value.ToString()); AttendanceRule attRule = new AttendanceRule(); attRule.Show(); attRule.AttendanceRuleGet(id); }
private void tsbNewRule_Click(object sender, EventArgs e) { try { AttendanceRule shiftNew = new AttendanceRule(); shiftNew.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }