コード例 #1
0
        public AssetEditViewModel(AssetEdit model)
            : base(new Messenger())
        {
            Model = model;

            RegisterCommand = new RelayCommand(Register);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        void EditAsset()
        {
            var edit = new AssetEdit(model);
            var message = new EditAssetMessage(new AssetEditViewModel(edit));
            Messenger.Send(message);

            if (message.Result != true) return;

            edit.Update();
        }