Пример #1
0
        /// <summary>
        /// Node item constructor
        /// </summary>
        /// <param name="NodeType"></param>
        public NodeItem(System.Type NodeType, NodeGraph Graph)
        {
            _NodeType = NodeType;

            InfoAttribute info = MoonReflection.GetNodeData(NodeType);

            _Name = (info != null) ? (string.IsNullOrEmpty(info.Name) ? NodeType.Name : info.Name) : NodeType.Name;

            _Category = (info == null || string.IsNullOrEmpty(info.Category)) ? "No category" : info.Category;

            _icon = MoonResources.LoadIcon(Graph.GetIconName(NodeType.BaseType));
        }
Пример #2
0
 /// <summary>
 /// Inicializes the HelpWindow Icons.
 /// </summary>
 private static void Init()
 {
     SupportIcon = MoonResources.LoadIcon("SupportIcon");
     RateIcon    = MoonResources.LoadIcon("FavoriteIcon");
     ForumIcon   = MoonResources.LoadIcon("ForumsIcon");
 }