Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Load & run startup plugins
            foreach (string file in Directory.GetFiles(Application.StartupPath + "\\Plugins\\Startup", "*.dll"))
            {
                IStartupPlugin startupPlugin = PluginHandler.LoadPlugin <IStartupPlugin>(file);

                if (startupPlugin != null)
                {
                    startupPlugin.Run();
                }
            }

            Application.Run(new Form1());
        }