Пример #1
0
        internal void InitIcons(Assembly assembly)
        {
            if (!String.IsNullOrEmpty(SmallIcon))
            {
                SmallImage = MyResources.GetImageFromAssembly(assembly, SmallIcon);
            }

            if (SmallImage == null)
            {
                SmallImage = MyNodeConfig.GenerateDefaultImage(Name, false);
            }
        }
Пример #2
0
        internal void InitIcons(Assembly assembly)
        {
            if (!String.IsNullOrEmpty(BigIcon))
            {
                BigImage = MyResources.GetImageFromAssembly(assembly, BigIcon);
            }

            if (BigImage == null)
            {
                BigImage = GenerateDefaultImage(NodeType, true);
            }

            if (!String.IsNullOrEmpty(SmallIcon))
            {
                SmallImage = MyResources.GetImageFromAssembly(assembly, SmallIcon);
            }

            if (SmallImage == null)
            {
                SmallImage = GenerateDefaultImage(NodeType, false);
            }
        }