private void trialButtonClick(object sender, RoutedEventArgs e) { var trial = new trialManager(); trial = updateTrialSettings(trial); MainWindow.mainFrame.Navigate(new trialViewer(trial)); }
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(); }
private trialManager updateTrialSettings(trialManager trial) { trial.velocity = Convert.ToDouble(velocityBox.Text); trial.collectFullData = Convert.ToBoolean(fullDataBox.IsChecked); return(trial); }