public FrmWeekClassSchedule()
 {
     InitializeComponent();
     _professorDatalayer = new ProfessorDatalayer();
     _classroomDatalayer = new ClassroomDatalayer();
     _scheduleDatalayer = new ScheduleDatalayer();
 }
Ejemplo n.º 2
0
        public FrmProfessor()
        {
            InitializeComponent();
            WeekAttendanceDict = new List<KeyValuePair<DayOfWeek, int>>();
            _professorDatalayer = new ProfessorDatalayer();

            this.btnExcluir.Visible = false;
        }
Ejemplo n.º 3
0
        public FrmProfessor(int professorId)
        {
            InitializeComponent();
            WeekAttendanceDict = new List<KeyValuePair<DayOfWeek, int>>();
            _professorDatalayer = new ProfessorDatalayer();

            var professor = _professorDatalayer.GetById(professorId);
            _professorId = professor.Id;

            this.txtName.Text = professor.Name;
            this.txtSubject.Text = professor.Subject;
            this.txtWeekClassesQty.Text = professor.NumberOfClassesWeek.ToString();
            this.FillAttendanceCheckBoxes(professor.AttendanceRules.ToList());

            this.btnExcluir.Visible = true;
        }