コード例 #1
0
ファイル: MainForm.cs プロジェクト: Kulasus/AT-.NET
        private void OnButtonClick(object sender, EventArgs e, Type plugin)
        {
            List <Type> typeInList = new List <Type>();

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

            PluginInvoker.Invoke(plugins);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(plugins));
        }
コード例 #3
0
ファイル: Utilities.cs プロジェクト: hdpham77/Test
        public static void RunPlugin(PluginDefinitionSelection plugin, EventHandler <PluginNotificationEventArgs> notificationEvent = null, EventHandler <PluginProgressChangedEventArgs> progressChangedEvent = null)
        {
            int contextAccountID = Constants.DefaultAccountID;

            if (!plugin.Arguments.Contains(Plugin.ContextAccountIDArgumentKey))
            {
                contextAccountID = int.Parse(ConfigurationManager.AppSettings["ContextAccountID"]);
            }
            PluginInvoker.Run(plugin, contextAccountID, notificationEvent, progressChangedEvent);
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: hdpham77/Test
        private static void Main(string[] args)
        {
            var plugins = GetPluginDefinitionsToRun();

            PluginInvoker.RunBatch(plugins);
        }