Exemplo n.º 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmStaffAttendance staffAttedance = new frmStaffAttendance();

            staffAttedance.AttendanceView = this;
            staffAttedance.ShowDialog();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }