public ReviewSelectedCourse(presentationModel pmodel) { _pmodel = pmodel; InitializeComponent(); InitializeCourseData(); RefreshCourseListGridView(); _userNameLabel.Text = _pmodel.GetCurrentUser(); }
public StudentList(presentationModel pmodel, int courseId) { _courseId = courseId; _pmodel = pmodel; InitializeComponent(); InitializeSudentList(); InitializeGridView(); }
public DropCourse(presentationModel pmodel) { _pmodel = pmodel; InitializeComponent(); InitializeCourseData(); InitializeDropCourseDataGridView(); RefreshCourseDataGridView(); _showUserLabel.Text = _pmodel.GetCurrentUser(); }
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"); }
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; }
public LogIn(presentationModel Pmodel) { _pmodel = Pmodel; InitializeComponent(); }
public OfferCourse(presentationModel pmodel) { _pmodel = pmodel; InitializeComponent(); InitializeGridView(); }
public Register(presentationModel pModel) { _pmodel = pModel; InitializeComponent(); }
public PersonalClassSchedule(presentationModel pmodel) { _pmodel = pmodel; InitializeComponent(); InitializeGridView(); }