Example #1
0
        private void InitProgressWindow(Traces traces)
        {
            ProgressWindow progressWindow = new ProgressWindow(traces);

            progressWindow.Topmost       = false;
            progressWindow.Owner         = this;
            progressWindow.ShowInTaskbar = false;
            progressWindow.ShowDialog();
        }
Example #2
0
        UIElement LoadConfusionMatrix(List <string> analysisFilenames, Classifier classifier, Adopter adopter)
        {
            Traces traces = new Traces(analysisFilenames, classifier, adopter);

            InitProgressWindow(traces);

            ConfusionMatrixAggregatePanel confusionMatrixAggregatePanel = new ConfusionMatrixAggregatePanel();

            if (traces.Count > 0)
            {
                confusionMatrixAggregatePanel.Load(traces);
            }

            return(confusionMatrixAggregatePanel);
        }
Example #3
0
        public void Load(Traces traces)
        {
            Traces = traces;

            InitUserControl();

            DockPanel dockPanel = new DockPanel();

            dockPanel.Background = Brushes.White;

            DockPanel.SetDock(aggregatePanel = CreateAggregatePanel(), Dock.Bottom);
            dockPanel.Children.Add(aggregatePanel);

            DockPanel.SetDock(gridOuter = CreateGrid(), Dock.Bottom);
            dockPanel.Children.Add(gridOuter);

            this.Content = WrapWithLabel(dockPanel,
                                         traces.Classifier.Name, TwGui.CreateAnalyzerToolTip(traces.Classifier.GetType(), traces.Classifier),
                                         traces.Adopter.Name, TwGui.CreateAnalyzerToolTip(traces.Adopter.GetType(), traces.Adopter),
                                         System.IO.Path.GetDirectoryName(traces.FilesLoaded[0]),
                                         CreateElementFiles(traces.FilesLoaded));

            PopulateRowLabel();
            PopulateColumnLabel();

            CreateDisplayModeSelector();

            CreateRowAndColumnHeaders();
            PopulateRowHeaders();
            PopulateColumnHeaders();

            PopulateRows();
            RenderRows();

            PopulateFixturesColumnNoText();
            PopulateFixturesRowNoText();

            PopulateStatistics();

            PopulateAggregatePanel();
        }