private void LogButton_Click(object sender, RoutedEventArgs e) { if (device.IsLogging()) { device.StopLogging(); logButton.Content = "Start Log"; } else { logButton.Content = "Stop Log"; device.StartLogging(); } }
private void LogButton_Click(object sender, RoutedEventArgs e) { if (device.IsLogging()) { device.StopLogging(); logButton.Content = "Start Log"; } else { logButton.Content = "Stop Log"; device.StartLogging(); } }