Exemplo n.º 1
0
        private void FirstRunSetup()
        {
            if (UserSettings.Setting.FirstRun)
            {
                Visibility = Visibility.Visible;

                MessageBoxResult result = TKMessageBox.Show("It looks like this is the first run of PathTools.\n\n" +
                                                            "Would you like to keep a log file?",
                                                            "PathTools - Keep a Log File?",
                                                            MessageBoxButton.YesNoCancel,
                                                            MessageBoxImage.Question);
                if (result == MessageBoxResult.Yes)
                {
                    LogFileWindow log = new LogFileWindow
                    {
                        Owner = this
                    };
                    log.cbKeepLog.IsChecked = true;
                    _ = log.ShowDialog();
                }
                else if (result == MessageBoxResult.No)
                {
                    UserSettings.Setting.KeepLogFile = false;
                }
                else if (result == MessageBoxResult.Cancel)
                {
                    Application.Current.Shutdown();
                }

                UserSettings.Setting.FirstRun = false;
            }
        }
Exemplo n.º 2
0
        private void MnuLogFileSetup_Click(object sender, RoutedEventArgs e)
        {
            LogFileWindow logFileWindow = new LogFileWindow
            {
                Owner = this
            };

            _ = logFileWindow.ShowDialog();
        }