Example #1
0
        public List <ErrorViewModel> GetErrors(PlanningItemViewModel planningItem)
        {
            var calculator = new ErrorCalculator();

            ErrorGrid = calculator.Calculate(planningItem.PlanningItemObject);
            ErrorGrid = ErrorGrid.OrderBy(x => x.Status).ToList();
            return(ErrorGrid);
        }
Example #2
0
        public FrmProgressWindow(Form parentForm, string titleRoot, WorkerStart function, Finished funcFinished)
        {
            Cancelled     = false;
            _parentForm   = parentForm;
            _titleRoot    = titleRoot;
            _funcFinished = funcFinished;
            InitializeComponent();

            Type         dgvType = ErrorGrid.GetType();
            PropertyInfo pi      = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic);

            pi.SetValue(ErrorGrid, true, null);

            ClientSize = new Size(511, 131);

            _titleRoot = titleRoot;

            _thWrk = new ThreadWorker(function);
        }
Example #3
0
 private void ErrorGridSelectionChanged(object sender, EventArgs e)
 {
     ErrorGrid.ClearSelection();
 }