void viewModel_DataChanged(ChangeableModelBase viewmodel)
        {
            var note = viewmodel as NoteViewModel;

            if (note != null)
            {
                if (note.NoteID >= 0)
                {
                    RegisterUniquePendingChange(new UpdateNoteCommand(note.Model, Owner));
                }
            }
        }
Exemple #2
0
        void viewModel_DataChanged(ChangeableModelBase viewmodel)
        {
            if (_controller != null)
            {
                var vm = viewmodel as ViewModelBase;
                if (vm == null || vm.ObjectID > 0)
                {
                    var action = _controller.PrepareUpdateAction(viewmodel as ViewModelBase);
                    if (action != null)
                    {
                        RegisterUniquePendingChange(action);
                    }
                }
            }

            if (ModelChanged != null)
            {
                ModelChanged(_model);
            }
        }
 void AssociateViewModel_DataChanged(ChangeableModelBase viewmodel)
 {
     RaisePropertyChanged("DisplayLabel");
 }
Exemple #4
0
 void Multimedia_DataChanged(ChangeableModelBase viewmodel)
 {
     RegisterUniquePendingChange(new UpdateMultimediaCommand(Multimedia.Model));
 }
 void ViewModelBase_DataChanged(ChangeableModelBase viewmodel)
 {
     RaisePropertyChanged("DisplayLabel");
     RaisePropertyChanged("Icon");
 }