public UIElement Report() {

            reportSelector = new ProjectReportSelector(attributes = new ProjectReportAttributes());
            reportSelector.Owner = Application.Current.MainWindow;
            reportSelector.ShowDialog();

            if (!reportSelector.DialogResult.HasValue || reportSelector.DialogResult.Value == false)
                return panel;

            analysisFiles = TwFile.GetAnalysisFilesIncludingZipped();
            if (analysisFiles.Count == 0)
                return panel;

            aggregateFile = TwFile.GetProjectReportFileToSave("TraceWizardProjectReport");
            if (aggregateFile == null || aggregateFile.Length == 0)
                return panel;

            System.IO.File.Delete(aggregateFile);

            InitProgressWindow();

            ReportDone();

            return panel;
        }
Exemple #2
0
        public UIElement Report()
        {
            analysisFiles = TwFile.GetAnalysisFilesIncludingZipped();
            if (analysisFiles.Count != 0)
            {
                InitProgressWindow();
                ReportDone();
            }

            return(panel);
        }
        public List <UIElement> Report()
        {
            var reports = new List <UIElement>();

            files = TwFile.GetAnalysisFilesIncludingZipped();
            if (files.Count != 0)
            {
                foreach (string file in files)
                {
                    reports.Add(Load(file));
                }
            }
            return(reports);
        }
Exemple #4
0
        void ExecuteConfusionMatrix(List <Classifier> classifiers, Adopter adopter)
        {
            List <string> files = TwFile.GetAnalysisFilesIncludingZipped();

            if (files.Count > 0)
            {
                foreach (var classifier in classifiers)
                {
                    var panel = LoadConfusionMatrix(files, classifier, adopter);
                    AddTab(CreateTabItemHeader("Confusion Matrix: " + classifier.Name,
                                               TwGui.GetImage("confusionmatrix.png")), panel, null, true);
                }
            }
        }
Exemple #5
0
        protected void Export(string defaultFileName)
        {
            analysisFiles = TwFile.GetAnalysisFilesIncludingZipped();
            if (analysisFiles.Count == 0)
            {
                return;
            }

            arffFile = TwFile.GetArffFileToSave(defaultFileName);
            if (arffFile == null || arffFile.Length == 0)
            {
                return;
            }

            System.IO.File.Delete(arffFile);
            InitProgressWindow();
        }
Exemple #6
0
        void ExecuteOpen()
        {
            List <string> fileNames = TwFile.GetAnalysisFilesIncludingZipped();

            if (fileNames.Count > 0)
            {
                UpdateAnalysisFolder(fileNames[0]);
            }

            foreach (string fileNameActualAnalysis in fileNames)
            {
                if (TwServices.IsAnalysis(fileNameActualAnalysis))
                {
                    AddTabLoadAnalysis(fileNameActualAnalysis);
                }
            }
        }