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

            bool result = await base.InitializeAsync(core);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_SETTYPE));

            if (result)
            {
                addCacheType(97001, "Civil", PluginSettings.Instance.GPXTagCivil);
                addCacheType(97002, "Historic and religious", PluginSettings.Instance.GPXTagHistoricAndReligious);
                addCacheType(97003, "Natural", PluginSettings.Instance.GPXTagNatural);
                addCacheType(97004, "Technical", PluginSettings.Instance.GPXTagTechnical);
                addCacheType(97005, "Military", PluginSettings.Instance.GPXTagMilitary);
            }

            return result;
        }
Ejemplo n.º 2
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
Ejemplo n.º 3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }