コード例 #1
0
ファイル: PluginManager.cs プロジェクト: vanroy86/TweetDuck
        public PluginManager(IPluginConfig config, string rootPath)
        {
            this.Config = config;
            this.Config.PluginChangedState += Config_PluginChangedState;

            this.rootPath = rootPath;
            this.bridge   = new PluginBridge(this);
        }
コード例 #2
0
        public PluginManager(string rootPath, string configPath)
        {
            this.rootPath   = rootPath;
            this.configPath = configPath;

            this.Config = new PluginConfig();
            this.Bridge = new PluginBridge(this);

            Config.Load(configPath);
            Config.InternalPluginChangedState += Config_InternalPluginChangedState;
        }
コード例 #3
0
ファイル: PluginManager.cs プロジェクト: Irbidan/TweetDuck
        public PluginManager(string rootPath, string configPath)
        {
            this.rootPath   = rootPath;
            this.configPath = configPath;

            this.Config = new PluginConfig();
            this.Bridge = new PluginBridge(this);

            LoadConfig();

            Config.InternalPluginChangedState += Config_InternalPluginChangedState;
            Program.UserConfigReplaced        += Program_UserConfigReplaced;
        }