Exemple #1
0
        private static void ConnectionSettings()
        {
            var settingsViewModel = new SettingsWindowViewModel();
            var settingsWindow    = new SettingsWindowView {
                DataContext = settingsViewModel
            };

            settingsViewModel.RequestClose += settingsWindow.Close;
            settingsWindow.ShowDialog();
        }
        private static void Settings()
        {
            SettingsWindowViewModel settingsViewModel = new SettingsWindowViewModel();
            SettingsWindowView      settingsWindow    = new SettingsWindowView {
                DataContext = settingsViewModel
            };

            settingsViewModel.RequestClose += settingsWindow.Close;

            settingsWindow.ShowDialog();
        }
        private static void Settings()
        {
            SettingsWindowViewModel settingsViewModel = new SettingsWindowViewModel();
            SettingsWindowView settingsWindow = new SettingsWindowView { DataContext = settingsViewModel };

            settingsViewModel.RequestClose += settingsWindow.Close;

            settingsWindow.ShowDialog();
        }