コード例 #1
0
        private void ShowAddRpDialog(object sender, RoutedEventArgs e)
        {
            AddRpDialog dialog = new AddRpDialog();

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

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