예제 #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_SHOW);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_NO));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_YES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_BACK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_FINISH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_NEXT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_ORGTEXT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_SETUPWIZARD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_LANGUAGE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_HOMELOC));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_GEOCACHINGLIVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_WELCOMEE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_AUTHORIZE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_AUTHORIZED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_GCNAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_MEMBERSHIP));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_CENTERCOORDS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SetupWizardForm.STR_HOMECOORDS));
            Assembly assembly = Assembly.GetExecutingAssembly();
            using (StreamReader textStreamReader = new StreamReader(assembly.GetManifestResourceStream("GlobalcachingApplication.Plugins.SetupWzrd.WelcomeText.txt")))
            {
                core.LanguageItems.Add(new Framework.Data.LanguageItem(textStreamReader.ReadToEnd()));
            }
            using (StreamReader textStreamReader = new StreamReader(assembly.GetManifestResourceStream("GlobalcachingApplication.Plugins.SetupWzrd.GeocacheLiveText.txt")))
            {
                core.LanguageItems.Add(new Framework.Data.LanguageItem(textStreamReader.ReadToEnd()));
            }

            return await base.InitializeAsync(core);
        }
예제 #3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }