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

            AddAction(ACTION_EXPORT_ACTIVE);
            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(GarminCommunicatorForm.STR_CANCEL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_START));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_INCLNOTES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_ADDCHILDWAYPOINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_USENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MAXNAMELENGTH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MINSTARTNAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_ADDWPTTODESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_USEHINTSDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_GPXVERSION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MAXLOGS));

            return await base.InitializeAsync(core);
        }
Ejemplo n.º 2
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);
            AddAction(ACTION_EXPORT_ACTIVE);

            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_EXPORTINGGPX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_SELECTDEVICE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_ADDCHILDWAYPOINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_SEPFILEPERGEOCACHE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_USENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_ADDWPTTODESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_USEHINTSDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_USEDATABASENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_CREATEGGZFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_INCLNOTES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_GPXVERSION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_ADDIMAGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectDeviceForm.STR_MAXLOGS));

            return await base.InitializeAsync(core);
        }
Ejemplo n.º 3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }
Ejemplo n.º 4
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }