public virtual void UpdateStateWithNotification(RelevanceLevel newLevel) { if (this.CurrentRelevanceLevel == newLevel) { return; } this.CurrentRelevanceLevel = newLevel; this.OnRelevanceChanged(); }
protected virtual void ProviderOnClipboardValueUpdatedService(string newValue) { if (this.IsValidUrl(newValue)) { this.CurrentRelevanceLevel = RelevanceLevel.Normal; } else { this.CurrentRelevanceLevel = RelevanceLevel.Low; } this.OnRelevanceChanged(); }
public void DecorateStripItem(ToolStripMenuItem menuItem, RelevanceLevel currentRelevanceLevel) { switch (currentRelevanceLevel) { case RelevanceLevel.Irrelevant: this.SetToIrrelevantState(menuItem); break; case RelevanceLevel.Low: this.SetToLowState(menuItem); break; case RelevanceLevel.Normal: this.SetToNormalState(menuItem); break; case RelevanceLevel.High: this.SetToHighState(menuItem); break; } }