示例#1
0
 private void displayResults()
 {
     resultsPerformance = new ChoiceResultView();
     ((ChoiceResultViewModel)resultsPerformance.DataContext).enableSomeCheckBox(Path.GetDirectoryName(statisticsPath));
     ((ChoiceResultViewModel)resultsPerformance.DataContext).isLoad = true;
     resultsPerformance.Show();
 }
示例#2
0
        private void OpenChartsAnalysis()
        {
            if (Main.session.Exists())
            {
                string path = Path.Combine(Directory.GetParent(Main.session.sessionPath).ToString(), "SessionRecording");
                path = path + Path.DirectorySeparatorChar;
                if (Directory.Exists(path))
                {
                    HashSet <string> set = new HashSet <string>();

                    ChoiceResultView crv = new ChoiceResultView();
                    ((ChoiceResultViewModel)crv.DataContext).path = path;
                    ((ChoiceResultViewModel)crv.DataContext).enableSomeCheckBox(null);
                    ((ChoiceResultViewModel)crv.DataContext).isLoad    = true;
                    ((ChoiceResultViewModel)crv.DataContext).IsLoading = true;
                    crv.Show();
                }
                else
                {
                    System.Windows.MessageBox.Show("No session recorded", "Open charts analysis error", MessageBoxButton.OK, MessageBoxImage.Information);
                }
            }
        }