private void LogFileBtn_Click(object sender, RoutedEventArgs e) { if (!LogData) { // // Create the log file. _logWriter.LogCreator(fileName); LogData = true; this.LogFileBtn.Content = "Logging Data"; } }
private void LogFileBtn_Click(object sender, RoutedEventArgs e) { if (!LogData) { // // Create the log file. _logWriter.LogCreator(fileName); _logWriter.LogWrite(InputData.CSVHeader); LogData = true; this.LogFileBtn.Content = "Stop Logging Data"; } else { // // Stop the logger. LogData = false; this.LogFileBtn.Content = "Log Data"; } }