public PrerequisiteSearchOnTextboxList(CommonExchange.SysAccess userInfo, CourseLogic roomSubjectManager, String departmentId) { this.InitializeComponent(); _userInfo = userInfo; _roomSubjectManager = roomSubjectManager; _departmentId = departmentId; this.pbxRefresh.Click += new EventHandler(pbxRefreshClick); }
public SubjectCreate(CommonExchange.SysAccess userInfo, CourseLogic courseManager) { this.InitializeComponent(); _userInfo = userInfo; _courseManager = courseManager; this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnCreate.Click += new EventHandler(btnCreateClick); }
public SubjectUpdate(CommonExchange.SysAccess userInfo, CommonExchange.SubjectInformation subjectInfo, CourseLogic courseManager) { this.InitializeComponent(); _userInfo = userInfo; _subjectInfo = subjectInfo; _subjectInfoTemp = (CommonExchange.SubjectInformation)subjectInfo.Clone(); _courseManager = courseManager; this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); }
//####################################################CLASS ClassroomSubjectManager EVENTS############################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { _courseManager = new CourseLogic(_userInfo); _frmClassroomSearch = new ClassroomSearchList(); _frmClassroomSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmClassroomSearchOnDoubleClickEnter); _frmClassroomSearch.OnCreate += new ClassroomSearchListLinkCreateClick(_frmClassroomSearchOnCreate); _frmClassroomSearch.LocationPoint = new Point(10, 360); _frmClassroomSearch.AdoptGridSize = true; _frmClassroomSearch.MdiParent = this; _frmSubjectSearch = new SubjectSearchList(); _frmSubjectSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmSubjectSearchOnDoubleClickEnter); _frmSubjectSearch.OnCreate += new SubjectSearchListLinkCreateClick(_frmSubjectSearchOnCreate); _frmSubjectSearch.LocationPoint = new Point(10, 360); _frmSubjectSearch.AdoptGridSize = false; _frmSubjectSearch.MdiParent = this; _frmCourseSearch = new CourseSearchList(); _frmCourseSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmCourseSearchOnDoubleClickEnter); _frmCourseSearch.OnCreate += new CourseSearchListLinkCreateClick(_frmCourseSearchOnCreate); _frmCourseSearch.LocationPoint = new Point(50, 360); _frmCourseSearch.AdoptGridSize = true; _frmCourseSearch.MdiParent = this; lblRecordDate.Text = "Record Date: " + DateTime.Parse(_courseManager.ServerDateTime).ToString(); _courseFilter = new ClientExchange.RoomSubjectCourseFilter(); _courseFilter.ForSubject = true; if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessHighSchoolGradeSchoolRegistrar(_userInfo))) { throw new Exception("You are not authorized to access this module."); } else if (RemoteServerLib.ProcStatic.IsSystemAccessHighSchoolGradeSchoolRegistrar(_userInfo)) { _frmCourseSearch.DisableCreateLink(); } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } } //----------------------------------------
public ClassroomUpdate(CommonExchange.SysAccess userInfo, CommonExchange.ClassroomInformation roomInfo, CourseLogic courseManager) { this.InitializeComponent(); _userInfo = userInfo; _roomInfo = roomInfo; _roomInfoTemp = (CommonExchange.ClassroomInformation)roomInfo.Clone(); _courseManager = courseManager; this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); }