foreach (string modpath in Settings.ClientSettings.Modules) { Assembly mod = Assembly.LoadFrom(modpath); if (mod == null) continue; foreach (Type moduleType in mod.GetTypes()) { Type appletType = moduleType.GetInterface(typeof(IApplet).Name); if (null != appletType) { IApplet applet = (IApplet)Activator.CreateInstance(moduleType); if (applet.Initialize()) {