Esempio n. 1
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_FILTER);
            AddAction(ACTION_QUICKPURGE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_DAYS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_KEEPATLEAST));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_KEEPLOGSOF));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_KEEPOFOWNED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_KEEPOWNLOGS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_MONTHS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_OLDERTHAN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_REMOVELOGSFROM));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(LogPurgerForm.STR_TITLE));

            return await base.InitializeAsync(core);
        }
Esempio n. 2
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }