Пример #1
0
        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
                });
            }
        }
Пример #2
0
 internal EntityType_AddFromDialog(NewEntityDialog dialog)
 {
     _dialog = dialog;
 }