Beispiel #1
0
        private void ShowAddRpDialog(object sender, RoutedEventArgs e)
        {
            AddRpDialog dialog = new AddRpDialog();

            dialog.Owner       = Application.Current.MainWindow;
            dialog.DataContext = ViewModel.PersonnageInfo;
            dialog.ShowDialog();
        }
        private void AddAndOpenRpDialog(object sender, RoutedEventArgs e)
        {
            AddPeriode();
            AddRpDialog innerDialog = new AddRpDialog();

            innerDialog.Owner       = this;
            innerDialog.DataContext = ViewModel;
            innerDialog.ShowDialog();
        }