Exemple #1
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);
        }
Exemple #2
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);

            if (Properties.Settings.Default.UpgradeNeeded)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeNeeded = false;
                Properties.Settings.Default.Save();
            }
            if (Properties.Settings.Default.ExportFields == null)
            {
                Properties.Settings.Default.ExportFields = new System.Collections.Specialized.StringCollection();
                Properties.Settings.Default.Save();
            }

            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 base.Initialize(core);
        }
Exemple #3
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));
        }