コード例 #1
0
        private void trialButtonClick(object sender, RoutedEventArgs e)
        {
            var trial = new trialManager();

            trial = updateTrialSettings(trial);
            MainWindow.mainFrame.Navigate(new trialViewer(trial));
        }
コード例 #2
0
        public trialViewer(trialManager trial)
        {
            InitializeComponent();
            MainViewModel.normalForceLabel = normalForceLabel;
            MainViewModel.shearForceLabel  = shearForceLabel;
            this.trial = trial;


            var myTimer = new Timer();

            myTimer.Elapsed += timer_Tick;
            myTimer.Interval = 1000;
            myTimer.Start();

            startTime = DateTime.Now;

            var trialThread = new Thread(trial.runTrial);

            trialThread.IsBackground = true;
            trialThread.Start();
        }
コード例 #3
0
 private trialManager updateTrialSettings(trialManager trial)
 {
     trial.velocity        = Convert.ToDouble(velocityBox.Text);
     trial.collectFullData = Convert.ToBoolean(fullDataBox.IsChecked);
     return(trial);
 }