Пример #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmStaffAttendance staffAttedance = new frmStaffAttendance();

            staffAttedance.AttendanceView = this;
            staffAttedance.ShowDialog();
        }
Пример #2
0
        private void btnAttendance_Click(object sender, EventArgs e)
        {
            //Load frmAddAttendance
            frmAddAttendance attendance = new frmAddAttendance();

            attendance.view = this;
            attendance.ShowDialog();

            //Load frmStaffAttendance
            frmStaffAttendance staffAttendance = new frmStaffAttendance();

            staffAttendance.AttendanceView = this;
            staffAttendance.ShowDialog();
        }
Пример #3
0
        private void dgvList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (index < 0)
            {
                return;
            }
            frmStaffAttendance staffAttendance = new frmStaffAttendance();

            staffAttendance.edit           = true;
            staffAttendance.code           = code;
            staffAttendance.date           = date;
            staffAttendance.AttendanceView = this;
            staffAttendance.ShowDialog();
        }