Exemple #1
0
        public LoginView()
        {
            InitializeComponent();

            classScheduleHelper = new ClassScheduleHelper();
            loginPresenter = new LoginPresenter(this);
            LoginSuccess = false;
        }
        public EditSystemUserPresenter(IEditSystemUserView view)
        {
            classScheduleHelper = new ClassScheduleHelper();

            editSystemUserView = view;

            editSystemUserModel = new SystemUserModel();

            editSystemUserView.UpdateSystemUser += SystemUserView_UpdateSystemUser;
        }
        public SystemUserPresenter(ISystemUserView view)
        {
            classScheduleHelper = new ClassScheduleHelper();

            systemUserView = view;
            systemUserModel = new SystemUserModel();

            systemUserView.AddSystemUser += SystemUserView_AddUser;
            systemUserView.DeleteSystemUser += SystemUserView_DeleteUser;
            systemUserView.ReloadDataGridView += SystemUserView_ReloadDataGridView;
            systemUserView.CreateEditSystemUserView += SystemUserView_CreateEditSystemUserView;
        }
        public TeacherPresenter(ITeacherView view)
        {
            classScheduleHelper = new ClassScheduleHelper();

            teacherView = view;
            teacherModel = new TeacherModel();
            locationModel = new LocationModel();

            teacherView.AddTeacher += TeacherView_AddTeacher;
            teacherView.DeleteTeacher += TeacherView_DeleteTeacher;
            teacherView.ReloadDataGridView += TeacherView_ReloadDataGridView;
            teacherView.CreateEditTeacherView += TeacherView_CreateEditTeacherView;

            teacherView.LocationList = GetAllLocationList();
        }
        public TeacherTrainingSchedulePresenter(ITeacherTrainingScheduleView view)
        {
            classScheduleHelper = new ClassScheduleHelper();

            teacherTrainingScheduleView = view;

            teacherModel = new TeacherModel();
            locationModel = new LocationModel();
            teacherTrainingScheduleModel = new TeacherTrainingScheduleModel();

            teacherTrainingScheduleView.AddTeacherTrainingSchedule += TeacherTrainingScheduleView_AddTeacherTrainingSchedule;
            teacherTrainingScheduleView.DeleteTeacherTrainingSchedule += TeacherTrainingScheduleView_DeleteTeacherTrainingSchedule;
            teacherTrainingScheduleView.ReloadDataGridView += TeacherTrainingScheduleView_ReloadDataGridView;

            teacherTrainingScheduleView.Location = GetAllLocationList();
            teacherTrainingScheduleView.Teacher = GetAllTeacherList();
        }