public AssetEditViewModel(AssetEdit model) : base(new Messenger()) { Model = model; RegisterCommand = new RelayCommand(Register); }
void RegisterAsAsset() { var edit = new AssetEdit(model); var message = new EditAssetMessage(new AssetEditViewModel(edit)); Messenger.Send(message); if (message.Result != true) return; edit.Register(); IsAsset = true; }
void EditAsset() { var edit = new AssetEdit(model); var message = new EditAssetMessage(new AssetEditViewModel(edit)); Messenger.Send(message); if (message.Result != true) return; edit.Update(); }