public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core) { core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_LOADING)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_LOADINGDATA)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVING)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGDATA)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGGEOCACHES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGLOGS)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGLOGIMAGES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGGEOCACHEIMAGES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGLOGIMAGES)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGWAYPOINTS)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_BACKINGUPDATA)); core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_RESTORINGDATA)); core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXCOUNT)); var p = new PluginSettings(core); if (string.IsNullOrEmpty(PluginSettings.Instance.ActiveDataFile)) { PluginSettings.Instance.ActiveDataFile = System.IO.Path.Combine(core.PluginDataPath, "GAPPSFDataStorage.gsf"); } SetDataSourceName(PluginSettings.Instance.ActiveDataFile); core.Logs.LoadFullData += new Framework.EventArguments.LoadFullLogEventHandler(Logs_LoadFullData); core.Geocaches.LoadFullData += new Framework.EventArguments.LoadFullGeocacheEventHandler(Geocaches_LoadFullData); return await base.InitializeAsync(core); }
public PluginSettings(ICore core) { _uniqueInstance = this; _core = core; }