Example #1
0
        private void Menu_SettingsClick(object sender, RoutedEventArgs e)
        {
            var settingsWindow = new MaintainSettings(printSettingsFolder, printSettingsFileName)
            {
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            settingsWindow.ShowDialog();

            printSettingsFolder         = settingsWindow.SettingsFolder;
            printSettingsFileName       = settingsWindow.SettingsFile;
            LabelSettingsFolder.Content = printSettingsFolder;
            TextSettingsFileName.Text   = printSettingsFileName;

            DisplaySettings();
        }
Example #2
0
        private void Menu_SettingsClick(object sender, RoutedEventArgs e)
        {
            var settingsWindow = new MaintainSettings(printSettingsFolder, printSettingsFileName)
            {
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };
            settingsWindow.ShowDialog();

            printSettingsFolder = settingsWindow.SettingsFolder;
            printSettingsFileName = settingsWindow.SettingsFile;
            LabelSettingsFolder.Content = printSettingsFolder;
            TextSettingsFileName.Text = printSettingsFileName;

            DisplaySettings();
        }