Exemple #1
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_SELECT);

            return await base.InitializeAsync(core);
        }
Exemple #2
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_GET);
            AddAction(ACTION_IMPORT);
            AddAction(ACTION_ADD);
            AddAction(ACTION_REMOVE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOACTIVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GETTINGDATA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GET));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_IMPORT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ADD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_REMOVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_IMPORTINGCACHES));

            return await base.InitializeAsync(core);
        }
Exemple #3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }
Exemple #4
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }