예제 #1
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
예제 #2
0
        public async override Task <bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);

            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_EXPORTINGPOI));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_ADD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_EXPORT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_FIELDS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_FILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_SHEETS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_TITLE));

            PropertyItem ppi;

            ppi = new PropertyItemCode(core);
            ppi = new PropertyItemName(core);
            ppi = new PropertyItemPublished(core);
            ppi = new PropertyItemLat(core);
            ppi = new PropertyItemLon(core);
            ppi = new PropertyItemCoordinate(core);
            ppi = new PropertyItemAvailable(core);
            ppi = new PropertyItemArchived(core);
            ppi = new PropertyItemCountry(core);
            ppi = new PropertyItemState(core);
            ppi = new PropertyItemMunicipality(core);
            ppi = new PropertyItemCity(core);
            ppi = new PropertyItemType(core);
            ppi = new PropertyItemPlacedBy(core);
            ppi = new PropertyItemOwner(core);
            ppi = new PropertyItemContainer(core);
            ppi = new PropertyItemTerrain(core);
            ppi = new PropertyItemDifficulty(core);
            ppi = new PropertyItemDescriptionText(core);
            ppi = new PropertyItemDescriptionHTML(core);
            ppi = new PropertyItemUrl(core);
            ppi = new PropertyItemMemberOnly(core);
            ppi = new PropertyItemCustomLat(core);
            ppi = new PropertyItemCustomLon(core);
            ppi = new PropertyItemCustomCoordinate(core);
            ppi = new PropertyItemAutoCoordinate(core);
            ppi = new PropertyItemFavorites(core);
            ppi = new PropertyItemPersonalNotes(core);
            ppi = new PropertyItemFlagged(core);
            ppi = new PropertyItemFound(core);
            ppi = new PropertyItemFoundDate(core);
            ppi = new PropertyItemHints(core);
            ppi = new PropertyItemGCVote(core);
#if DEBUG
            ppi = new PropertyItemRDx(core);
            ppi = new PropertyItemRDy(core);
            ppi = new PropertyItemEnvelopAreaOther(core);
            ppi = new PropertyItemInAreaOther(core);
            ppi = new PropertyItemGlobalcachingUrl(core);
#endif
            return(await base.InitializeAsync(core));
        }
예제 #3
0
파일: Export.cs 프로젝트: gahadzikwa/GAPP
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);

            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_EXPORTINGPOI));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_ADD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_EXPORT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_FIELDS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_FILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_SHEETS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportForm.STR_TITLE));

            PropertyItem ppi;
            ppi = new PropertyItemCode(core);
            ppi = new PropertyItemName(core);
            ppi = new PropertyItemPublished(core);
            ppi = new PropertyItemLat(core);
            ppi = new PropertyItemLon(core);
            ppi = new PropertyItemCoordinate(core);
            ppi = new PropertyItemAvailable(core);
            ppi = new PropertyItemArchived(core);
            ppi = new PropertyItemCountry(core);
            ppi = new PropertyItemState(core);
            ppi = new PropertyItemMunicipality(core);
            ppi = new PropertyItemCity(core);
            ppi = new PropertyItemType(core);
            ppi = new PropertyItemPlacedBy(core);
            ppi = new PropertyItemOwner(core);
            ppi = new PropertyItemContainer(core);
            ppi = new PropertyItemTerrain(core);
            ppi = new PropertyItemDifficulty(core);
            ppi = new PropertyItemDescriptionText(core);
            ppi = new PropertyItemDescriptionHTML(core);
            ppi = new PropertyItemUrl(core);
            ppi = new PropertyItemMemberOnly(core);
            ppi = new PropertyItemCustomLat(core);
            ppi = new PropertyItemCustomLon(core);
            ppi = new PropertyItemCustomCoordinate(core);
            ppi = new PropertyItemAutoCoordinate(core);
            ppi = new PropertyItemFavorites(core);
            ppi = new PropertyItemPersonalNotes(core);
            ppi = new PropertyItemFlagged(core);
            ppi = new PropertyItemFound(core);
            ppi = new PropertyItemFoundDate(core);
            ppi = new PropertyItemHints(core);
            ppi = new PropertyItemGCVote(core);
#if DEBUG
            ppi = new PropertyItemRDx(core);
            ppi = new PropertyItemRDy(core);
            ppi = new PropertyItemEnvelopAreaOther(core);
            ppi = new PropertyItemInAreaOther(core);
            ppi = new PropertyItemGlobalcachingUrl(core);
#endif
            return await base.InitializeAsync(core);
        }
예제 #4
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }