コード例 #1
0
ファイル: Updater.cs プロジェクト: gahadzikwa/GAPP
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_UPDATESTATUS_ALL);
            AddAction(ACTION_UPDATESTATUS_SELECTED);
            AddAction(ACTION_UPDATESTATUS_ACTIVE);
            AddAction(ACTION_UPDATEFULL_ALL);
            AddAction(ACTION_UPDATEFULL_SELECTED);
            AddAction(ACTION_UPDATEFULL_ACTIVE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UNABLELIVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UPDATINGGEOCACHES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_UPDATINGGEOCACHE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_DESELECT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRADELAY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRADELAYLOGS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXLOGS));

            return await base.InitializeAsync(core);
        }
コード例 #2
0
ファイル: PluginSettings.cs プロジェクト: gahadzikwa/GAPP
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
コード例 #3
0
ファイル: PluginSettings.cs プロジェクト: pheijmans-zz/GAPP
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }