//Stop UI Timer and stop Data collection timer. private void StartStopToggle_Unchecked(object sender, RoutedEventArgs e) { newDevice.StopCollecting(); timer.Stop(); startStopToggle.Content = "Start"; }
private void stopButton_Click(object sender, RoutedEventArgs e) { //When the stop button is clicked, stop collecting data //Disable the stop button //Enable the start button measureLengthDevice.StopCollecting(); stopButton.IsEnabled = false; startButton.IsEnabled = true; }