Exemple #1
0
 public override void Pressed()
 {
     if (_noteButtonState == RMButtonStates.Remove)
     {
         _noteModifier.Remove();
     }
     else if (_noteButtonState == RMButtonStates.Confirm)
     {
         this.NoteButtonState = RMButtonStates.Hidden;
         _noteModifier.SaveModified();
         _noteModifier.StopEditMode();
     }
 }
Exemple #2
0
 public void Show(RMButtonStates state)
 {
     NoteButtonState = state;
 }
Exemple #3
0
 public NoteButtonViewModel(IEventAggregator eventAggregator, INoteButton noteModifier)
 {
     this._eventAggregator = eventAggregator;
     this._noteModifier = noteModifier;
     this.NoteButtonState = RMButtonStates.Hidden;
 }