Esempio n. 1
0
 private void displayResults()
 {
     resultsPerformance = new ChoiceResultView();
     ((ChoiceResultViewModel)resultsPerformance.DataContext).enableSomeCheckBox(Path.GetDirectoryName(statisticsPath));
     ((ChoiceResultViewModel)resultsPerformance.DataContext).isLoad = true;
     resultsPerformance.Show();
 }
Esempio n. 2
0
 public ChoiceResultViewModel()
 {
     choiceResultView = ChoiceResultView.Get();
     choiceResultView.cmbDate.ItemsSource   = getDate();
     choiceResultView.cmbDate.SelectedIndex = 0;
     minDate    = DateTime.Today;
     maxDate    = DateTime.Today;
     IsLoading  = false;
     lastRecord = true;
     listpath   = new HashSet <string>();
 }
Esempio n. 3
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);
                }
            }
        }