Ejemplo n.º 1
0
        public void LoadPlugin(string FilePath, string AssemblyName)
        {
            Assembly asm  = Assembly.LoadFile(FilePath);
            Type     type = asm.GetType("BlazeGames.IM.TestPlugin.IMPlugin");

            PluginActions actions = new PluginActions();

            object IMPlugin = Activator.CreateInstance(type, actions);

            Plugins.Add(new object[] { IMPlugin, actions });

            MethodInfo InitalizeMethod = IMPlugin.GetType().GetMethod("PluginLoaded");

            InitalizeMethod.Invoke(IMPlugin, null);
        }
Ejemplo n.º 2
0
        public void LoadPlugin(string FilePath, string AssemblyName)
        {
            Assembly asm = Assembly.LoadFile(FilePath);
            Type type = asm.GetType("BlazeGames.IM.TestPlugin.IMPlugin");

            PluginActions actions = new PluginActions();

            object IMPlugin = Activator.CreateInstance(type, actions);
            Plugins.Add(new object[] { IMPlugin, actions });

            MethodInfo InitalizeMethod = IMPlugin.GetType().GetMethod("PluginLoaded");
            InitalizeMethod.Invoke(IMPlugin, null);
        }
Ejemplo n.º 3
0
 public IMPlugin(PluginActions pluginActions)
 {
     MessageBox.Show("Plugin Created");
     actions = pluginActions;
     actions.AddPage(new page_test());
 }
Ejemplo n.º 4
0
 public MainPlugin(PluginActions pluginActions)
 {
     actions = pluginActions;
 }