Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
 public IMPlugin(PluginActions pluginActions)
 {
     MessageBox.Show("Plugin Created");
     actions = pluginActions;
     actions.AddPage(new page_test());
 }
Exemple #4
0
 public MainPlugin(PluginActions pluginActions)
 {
     actions = pluginActions;
 }