Пример #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(ExportOV2Form.STR_CACHETYPE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_CODE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_CONTAINER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_COORDS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_DIFFICULTY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_FAVORITES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_FILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_HINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_NOTE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_OWNER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_TERRAIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ExportOV2Form.STR_TITLE));

            return await base.InitializeAsync(core);
        }
Пример #2
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
Пример #3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }