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