public static void PreloadModules() { Assembly asmly = Assembly.GetCallingAssembly(); foreach (Type type in asmly.GetTypes()) { if (type == null) { continue; } ModulAttribute attrib = GetModulAttributeForType(type); if (attrib == null) { continue; } IModul o = (IModul)Activator.CreateInstance(type); m_Modules.Add(o); } TriggerModules(ModulEvent.Load); }
public static void LoadModules() { foreach (IModul modul in m_Modules) { ModulAttribute attrib = GetModulAttributeForType(modul.GetType()); if (attrib.InFilterList) { QuestDesignerMain.DesignerForm.DXControl.AddFilter(modul.Name); } } }