Пример #1
0
        private void ShowAddPartenaireDialog(object sender, RoutedEventArgs e)
        {
            AddPartenaireDialog dialog = new AddPartenaireDialog();

            dialog.DataContext = ViewModel.PersonnageInfo;
            dialog.ShowDialog();
        }
Пример #2
0
        private void AddAndAddPartenaire(object sender, RoutedEventArgs e)
        {
            AddRp();
            AddPartenaireDialog innerDialog = new AddPartenaireDialog();

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