//####################################################CLASS MajorExamScheduleManager EVENTS###############################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _majorExamScheduleManager = new MajorExamScheduleLogic(_userInfo);

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_majorExamScheduleManager.ServerDateTime).ToString();

                _frmMajorExamScheduleSearch                     = new MajorExamScheduleSearchList();
                _frmMajorExamScheduleSearch.OnCreate           += new MajorExamScheduleSearchListLinkCreateClick(_frmMajorExamScheduleSearchOnCreate);
                _frmMajorExamScheduleSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmMajorExamScheduleSearchOnDoubleClickEnter);
                _frmMajorExamScheduleSearch.Location            = new Point(14, 300);
                _frmMajorExamScheduleSearch.AdoptGridSize       = false;
                _frmMajorExamScheduleSearch.MdiParent           = this;

                _majorExamScheduleManager.InitializeSchoolYearComboManager(this.ctlManager.SchoolYearComboBox);
                _majorExamScheduleManager.InitializeCourseGroupCheckedListBox(this.ctlManager.CourseGroupCheckedListBox);
                _majorExamScheduleManager.InitializeMajorExamInformationCheckedListBox(this.ctlManager.ExamCheckedListBox);
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }
        public MajorExamScheduleCreate(CommonExchange.SysAccess userInfo, MajorExamScheduleLogic majorExamScheduleMananger)
            : base(userInfo, majorExamScheduleMananger)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
Exemplo n.º 3
0
        public MajorExamScheduleUpdate(CommonExchange.SysAccess userInfo, CommonExchange.MajorExamSchedule majorExamScheduleInfo,
                                       MajorExamScheduleLogic majorExamScheduleManager)
            : base(userInfo, majorExamScheduleManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _majorExamScheduleInfo     = majorExamScheduleInfo;
            _majorExamScheduleInfoTemp = (CommonExchange.MajorExamSchedule)majorExamScheduleInfo.Clone();

            _majorExamScheduleManager = majorExamScheduleManager;

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }
Exemplo n.º 4
0
        public MajorExamSchedule(CommonExchange.SysAccess userInfo, MajorExamScheduleLogic majorExamScheduleManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _majorExamScheduleManager = majorExamScheduleManager;

            _majorExamScheduleInfo = new CommonExchange.MajorExamSchedule();
            _errProvider           = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboCourseGroup.SelectedIndexChanged     += new EventHandler(cboCourseGroupSelectedIndexChanged);
            this.cboYear.SelectedIndexChanged            += new EventHandler(cboYearSelectedIndexChanged);
            this.cboSemester.SelectedIndexChanged        += new EventHandler(cboSemesterSelectedIndexChanged);
            this.cboExamDescription.SelectedIndexChanged += new EventHandler(cboExamDescriptionSelectedIndexChanged);
            this.txtExamDate.Validated     += new EventHandler(txtExamDateValidated);
            this.lnkChangeDate.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkChangeDateLinkClicked);
        }