Exemplo n.º 1
0
 private AttandanceTask(Control parent, CourseHall hall, int operationPanelWidth)
 {
     this.hall = hall;
     configureGUI(parent, hall.mode, operationPanelWidth);
     createNewSubAttandance();
     createRandomIfNeed();
 }
Exemplo n.º 2
0
        public static void showForm(CourseHall hall)
        {
            CourseHallEditForm form = new CourseHallEditForm();

            form.hall = hall;
            Model.Course course = hall.courseRef;
            form.editPanel.nameBox.text   = course.name;
            form.editPanel.idBox.text     = course.id;
            form.editPanel.remarkBox.text = course.remark;
            form.editPanel.attWeight.setSelectedIntValue(course.getRecord(Record.RType.attendance).weight);
            form.editPanel.lateWeight.setSelectedIntValue(course.getRecord(Record.RType.late).weight);
            form.editPanel.sickWeight.setSelectedIntValue(course.getRecord(Record.RType.sickLeave).weight);
            form.editPanel.busWeight.setSelectedIntValue(course.getRecord(Record.RType.businessLeave).weight);
            form.editPanel.absWeight.setSelectedIntValue(course.getRecord(Record.RType.absenteeism).weight);
            form.editPanel.resize(null, null);
            form.ShowDialog();
        }
Exemplo n.º 3
0
        public static AttandanceTask createAttandanceTask(CourseHall hallToCheck, Control parentOfPanel, int operationPanelWidth = 676)
        {
            AttandanceTask task = new AttandanceTask(parentOfPanel, hallToCheck, operationPanelWidth);

            return(task);
        }