예제 #1
0
        private bool changeSettings()
        {
            bool         result         = false;
            SettingsView settingsWindow = new SettingsView(this.settings);

            settingsWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            if (settingsWindow.ShowDialog() == true)
            {
                result = true;
            }
            return(result);
        }
예제 #2
0
        private void DataBaseLink_Click(object sender, RoutedEventArgs e)
        {
            Settings     settings       = this.settings.Clone();
            SettingsView settingsWindow = new SettingsView(settings);

            settingsWindow.Owner = this;
            settingsWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            if (settingsWindow.ShowDialog() == true)
            {
                this.settings = settings;
                if (this.dbWorker != null)
                {
                    this.dbWorker.MainDbConnectionString   = Settings.GlobalMainDbConnectionString;
                    this.dbWorker.KaskadDbConnectionString = Settings.GlobalKaskadDbConnectionString;
                }
            }
        }