Exemplo n.º 1
0
        private void ShowAddRpDialog(object sender, RoutedEventArgs e)
        {
            AddRpDialog dialog = new AddRpDialog();

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

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