public void ShowNewEntityDialog() { var dialog = new NewEntityDialog(); dialog.ShowDialog(); if (dialog.Result == System.Windows.MessageBoxResult.OK) { var vm = (NewEntityDialogViewModel)dialog.DataContext; ViewModelMediator.Current.GetEvent <NewEntityEventArgs>().Raise(this, new NewEntityEventArgs() { Name = vm.Name }); } }
internal EntityType_AddFromDialog(NewEntityDialog dialog) { _dialog = dialog; }