Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public BackgroundColorMixin(IChangeColorCommand command)
 {
     _command = command;
 }