Example #1
0
        private void SetArchivedExam()
        {
            _examViewModelList = _examBLL.GetExamViewModelList(true);
            dgvExam.DataSource = null;

            if (_examineeFailureViewModelList.Count > 0)
            {
                dgvExam.DataSource = _examViewModelList;
                dgvExam.ClearSelection();
            }
        }
        public void SetExamDatagridViewDataScource()
        {
            _examViewModelList = _examBLL.GetExamViewModelList(false);
            dgvExam.DataSource = null;

            if (_examViewModelList.Count > 0)
            {
                dgvExam.DataSource = _examViewModelList;
                dgvExam.ClearSelection();
            }

            SetItemCountWarning();
        }
Example #3
0
        public UCtrlSettings()
        {
            InitializeComponent();


            _passingRateBLL     = new PassingRateBLL();
            _currentPassingRate = _passingRateBLL.GetCurrentPassingRate();

            _examineeFailureBLL = new ExamineeFailureBLL();
            _currentWaitDays    = _examineeFailureBLL.GetCurrentWaitDays();

            _examBLL           = new ExamBLL();
            _examViewModelList = _examBLL.GetExamViewModelList(true);

            dgvPassingRate.AutoGenerateColumns     = false;
            dgvExamineeFailure.AutoGenerateColumns = false;
            dgvExam.AutoGenerateColumns            = false;

            SetPassingRateDefaultSettings();
            SetWaitDaysDefaultSettings();
            SetArchivedExam();
        }