public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core) { var p = new PluginSettings(core); bool result = await base.InitializeAsync(core); AddAction(ACTION_SETTINGS); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ACTIVE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_RETRIEVE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_SAVE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_SITES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_USERID)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_USERNAME)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_AUTHORIZE)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_AUTHORIZED)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_NO)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_YES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SiteInfoGermany.STR_INFO)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_OK)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_TITLE)); addCacheType(96001, "OC Traditional Cache", "Traditional Cache"); addCacheType(96002, "OC Multi-cache", "Multi-cache"); addCacheType(96003, "OC Virtual Cache", "Virtual Cache"); addCacheType(96004, "OC Event Cache", "Event Cache"); addCacheType(96005, "OC Unknown (Mystery) Cache", "Unknown Cache"); addCacheType(96006, "OC Webcam Cache", "Webcam Cache"); addCacheType(96007, "OC Moving Cache", "Locationless (Reverse) Cache"); addCacheType(96008, "OC Quiz Cache", "Unknown Cache"); addCacheType(96009, "OC Drive-in Cache", "Traditional Cache"); List<SiteInfo> sites = SiteManager.Instance.AvailableSites; foreach (SiteInfo si in sites) { core.GeocachingAccountNames.SetAccountName(si.GeocodePrefix, si.Username); } //delelop only: be sure a valid site is active! //OKAPIService.develop_CreateAttributesList(SiteManager.Instance.ActiveSite); return result; }
public PluginSettings(ICore core) { _uniqueInstance = this; _core = core; }