private void ShowAddPartenaireDialog(object sender, RoutedEventArgs e) { AddPartenaireDialog dialog = new AddPartenaireDialog(); dialog.DataContext = ViewModel.PersonnageInfo; dialog.ShowDialog(); }
private void AddAndAddPartenaire(object sender, RoutedEventArgs e) { AddRp(); AddPartenaireDialog innerDialog = new AddPartenaireDialog(); innerDialog.Owner = this; innerDialog.DataContext = ViewModel; innerDialog.ShowDialog(); }