public ReviewSelectedCourse(presentationModel pmodel)
 {
     _pmodel = pmodel;
     InitializeComponent();
     InitializeCourseData();
     RefreshCourseListGridView();
     _userNameLabel.Text = _pmodel.GetCurrentUser();
 }
Esempio n. 2
0
 public StudentList(presentationModel pmodel, int courseId)
 {
     _courseId = courseId;
     _pmodel   = pmodel;
     InitializeComponent();
     InitializeSudentList();
     InitializeGridView();
 }
Esempio n. 3
0
 public DropCourse(presentationModel pmodel)
 {
     _pmodel = pmodel;
     InitializeComponent();
     InitializeCourseData();
     InitializeDropCourseDataGridView();
     RefreshCourseDataGridView();
     _showUserLabel.Text = _pmodel.GetCurrentUser();
 }
Esempio n. 4
0
        public void CheckSuccessOrNotTest()
        {
            presentationModel _pmodel  = new presentationModel(new Model(), new Course_Model(), new Professor_Model());
            string            _userId  = "101590320";
            string            _userPwd = "0000";
            String            _success;

            _success = _pmodel.LogIn(_userId, _userPwd);
            Assert.AreEqual(_success, "Success");
        }
Esempio n. 5
0
        public void CheckSuccessOrNotTest()
        {
            presentationModel _pmodel       = new presentationModel(new Model(), new Course_Model(), new Professor_Model());
            string            _userId       = "101590320";
            string            _userPwd      = "0000";
            string            _userIdentity = "Student";
            bool _success;

            _success = _pmodel.CreateUser(_userId, _userPwd, _userIdentity);
            Assert.AreEqual(_success, true);
        }
 public SelectedCourse(presentationModel pmodel)
 {
     _pmodel = pmodel;
     InitializeComponent();
     userId = _pmodel.GetCurrentUser();
     _showStudentNameLabel.Text = _pmodel.GetCurrentUser();
     initializeCourseData();
     RefreshSelectCourseGridView();
     RefreshStudentSelectCourseGridView();
     _studentSelectCourseDataGridView.Columns[4].Visible = false;
 }
Esempio n. 7
0
 public LogIn(presentationModel Pmodel)
 {
     _pmodel = Pmodel;
     InitializeComponent();
 }
Esempio n. 8
0
 public OfferCourse(presentationModel pmodel)
 {
     _pmodel = pmodel;
     InitializeComponent();
     InitializeGridView();
 }
Esempio n. 9
0
 public Register(presentationModel pModel)
 {
     _pmodel = pModel;
     InitializeComponent();
 }
 public PersonalClassSchedule(presentationModel pmodel)
 {
     _pmodel = pmodel;
     InitializeComponent();
     InitializeGridView();
 }