Example #1
0
 private string GetSmallResultImage(EventType eventType)
 {
     if (eventType.IsEnabled)
     {
         return(IconManager.GetResourceName(Icons.EventEnabled, eventType.IsReadOnly));
     }
     else
     {
         return(IconManager.GetResourceName(Icons.EventDisabled, eventType.IsReadOnly));
     }
 }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
 protected override string GetImage()
 {
     return(IconManager.GetResourceName(Icons.Source, m_source.IsReadOnly));
 }