public void ChangePriority(int priority) { if (this.Priority != priority) { this.Priority = priority; PriorityChanged?.Invoke(this); } }
private void OnPriorityChanged() { PriorityChanged?.Invoke(this, EventArgs.Empty); }
//For test purposes, we do this manually. //Normally this is done automatically, but we do it manually //to test prioritylist behavior when the item is temporarily //in a transition state. public void FirePriorityChanged() { PriorityChanged?.Invoke(this, EventArgs.Empty); }
private void OnPropertyValueChanged() { PriorityChanged?.Invoke(); PropertyValueChanged?.Invoke(); }
/// <summary> /// Raises the <see cref="PriorityChanged" /> event. /// </summary> /// <seealso cref="EventArgs" /> protected virtual void OnPriorityChanged() { PriorityChanged?.Invoke(this, EventArgs.Empty); }