Exemple #1
0
        public TableBoolViewModel(LogicalReport report, TableBoolView view)
        {
            _view   = view;
            _report = report;

            CreateGrid();
        }
Exemple #2
0
        private void EvaluateCommand_Execute()
        {
            DisplayControl = null;
            Analyzer      analyzer = new Analyzer(Input);
            LogicalReport report;

            try
            {
                report = analyzer.Analyze();
            }
            catch (Exception)
            {
                DisplayControl = new ErrorResultView();
                return;
            }

            if (report.UniqueResult.HasValue)
            {
                DisplayControl = new SimpleBoolView(report.UniqueResult.Value);
                return;
            }
            DisplayControl = new TableBoolView(report);
        }