private void OpenSettings(object sender = null, RoutedEventArgs e = null) { Window w = new Settings.SettingsWindow(); w.WindowStartupLocation = WindowStartupLocation.CenterOwner; w.Owner = this; w.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { Window w = new Settings.SettingsWindow(); w.WindowStartupLocation = WindowStartupLocation.CenterOwner; w.Owner = this; w.Show(); }
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; }