All pastes #572235 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-17 16:19 UTC
rendered paste body
      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())
            {