internal void InitIcons(Assembly assembly) { if (!String.IsNullOrEmpty(SmallIcon)) { SmallImage = MyResources.GetImageFromAssembly(assembly, SmallIcon); } if (SmallImage == null) { SmallImage = MyNodeConfig.GenerateDefaultImage(Name, false); } }
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); } }