コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: wilmerbz/tools
        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();
        }
コード例 #2
0
        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();
        }