private void uxClearFileButton_Click(object sender, RoutedEventArgs e) { var confirm = System.Windows.MessageBox.Show("Are you sure you want to clear the content of the log file?", "Clear Log File", MessageBoxButton.YesNo, MessageBoxImage.Question); if (confirm == MessageBoxResult.No) { return; } LogReader.ClearLogFile(this._fileName); LoadLogEntries(); }
private void uxClearFileButton_Click(object sender, RoutedEventArgs e) { var confirm = System.Windows.MessageBox.Show(ClearLogConfirmationMessage, ClearLogConfirmationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question); if (confirm == MessageBoxResult.No) { return; } LogReader.ClearLogFile(this._fileName); LoadLogEntries(); }