Example #1
0
        private void OnButtonClick(object sender, EventArgs e, Type plugin)
        {
            List <Type> typeInList = new List <Type>();

            typeInList.Add(plugin);
            PluginInvoker.Invoke(typeInList);
        }
Example #2
0
        static void Main()
        {
            List <Type> plugins = PluginLoader.GetPlugins();

            PluginInvoker.Invoke(plugins);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(plugins));
        }