Beispiel #1
0
 public void Initialize(IPluginManager loader, IPlugin[] plugins)
 {
     try {
         this.config = loader.GetPluginSetting <LongMessageFilterConfig>(this.Name);
     } catch (System.Exception e) {
         Logger.DebugLog(e.ToString());
         this.config = null;
     }
     if (this.config == null)
     {
         this.config = new LongMessageFilterConfig();
     }
 }
Beispiel #2
0
 public void Initialize(IPluginManager loader, IPlugin[] plugins)
 {
     try {
         this.config = loader.GetPluginSetting <BWListConfigs>(this.Name);
     } catch (System.Exception e) {
         Logger.DebugLog(e.ToString());
         this.config = null;
     }
     if (this.config == null)
     {
         this.config = new BWListConfigs();
     }
     this.config.Initialize();
 }
Beispiel #3
0
        private static WelcomeSchedulerConfig LoadCofig(IPluginManager loader)
        {
            WelcomeSchedulerConfig config;

            try {
                config = loader.GetPluginSetting <WelcomeSchedulerConfig>(NAME);
            } catch (System.IO.FileNotFoundException) {
                config = null;
            } catch (System.Exception e) {
                Logger.DebugLog(e.ToString());
                config = null;
            }
            if (config == null)
            {
                config = new WelcomeSchedulerConfig();
            }
            LoadAdditionalConfig(loader, config);
            config.Init();
            return(config);
        }
 public void Initialize(IPluginManager loader, IPlugin[] plugins)
 {
     this.config = loader.GetPluginSetting <LongMessageFilterConfig>(this.Name);
 }
Beispiel #5
0
 public void Initialize(IPluginManager loader, IPlugin[] plugins)
 {
     this.config = loader.GetPluginSetting <UserDefinedSchedulerConfig>(this.Name);
     Reload(loader);
 }
Beispiel #6
0
 public void Initialize(IPluginManager loader, IPlugin[] plugins)
 {
     this.config = loader.GetPluginSetting <BWListConfigs>(this.Name);
     this.config.Initialize();
 }