Пример #1
0
 public NoteViewModel(
     IChangeColorCommand changeNoteColorCommand,
     ChangeNoteTextCommand changeNoteTextCommand)
 {
     _changeNoteTextCommand = changeNoteTextCommand;
     _backgroundColor = new BackgroundColorMixin(changeNoteColorCommand);
     _backgroundColor.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName);
     _expandable.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName);
 }
Пример #2
0
 public BackgroundColorMixin(IChangeColorCommand command)
 {
     _command = command;
 }