コード例 #1
0
        private void OpenSettings(object sender = null, RoutedEventArgs e = null)
        {
            Window w = new Settings.SettingsWindow();

            w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            w.Owner = this;
            w.Show();
        }
コード例 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Window w = new Settings.SettingsWindow();

            w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            w.Owner = this;
            w.Show();
        }
コード例 #3
0
        private void PopupFirstLaunch(object sender, DependencyPropertyChangedEventArgs e)
        {
            Window w = new Settings.SettingsWindow();

            w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            w.Owner = this;
            w.Show();
            MessageBox.Show(w, "Il s'agit du premier lancement. Veuillez renseigner les paramètres nécessaires au bon fonctionnement de l'application");
            this.IsVisibleChanged -= PopupFirstLaunch;
        }