public CategoryEditViewModel(IInventoryController controller, ICategoryEditView view) { _controller = controller; InitializeCommands(); View = view; View.Model = this; }
private bool ShowEditDialog() { ICategoryEditView categoryEditView = HelperFactory.RedirectHelper.CreateModalDialogView <ICategoryEditView>(View, To.CurrentModel); if (HelperFactory.RedirectHelper.ShowModalDialogView(categoryEditView, View)) { To.CurrentModel = categoryEditView.Model; Bo.Save(); return(true); } categoryEditView.Model = To.CurrentModel; return(false); }