private string GetSmallResultImage(EventType eventType) { if (eventType.IsEnabled) { return(IconManager.GetResourceName(Icons.EventEnabled, eventType.IsReadOnly)); } else { return(IconManager.GetResourceName(Icons.EventDisabled, eventType.IsReadOnly)); } }
public SourceNode(Snapin snapin, Source source) : base(snapin, typeof(EventStatusEditor).GUID) { // Properties DisplayName = source.RelativeQualifiedReference; m_source = source; // Images. AddImage(IconManager.GetResourceName(Icons.Source)); AddImage(IconManager.GetResourceName(Icons.Source, IconMask.ReadOnly)); }
public EventTypesNode(Snapin snapin, Catalogue catalogue) : base(snapin) { // Properties DisplayName = Name; m_catalogue = catalogue; // Result images. AddResultImage(IconManager.GetResourceName(Icons.EventEnabled)); AddResultImage(IconManager.GetResourceName(Icons.EventEnabled, IconMask.ReadOnly)); AddResultImage(IconManager.GetResourceName(Icons.EventDisabled)); AddResultImage(IconManager.GetResourceName(Icons.EventDisabled, IconMask.ReadOnly)); }
protected override string GetImage() { return(IconManager.GetResourceName(Icons.Source, m_source.IsReadOnly)); }