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

            AddAction(ACTION_SHOW);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ASKSAVEDATA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_WARNING));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_AVAILABLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_COPYCURRENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_COPYDEFAULT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_CURRENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_ENABLESTARTUP));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_FOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_SETTINGSFOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_SWITCH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_TARGETSETTINGSFOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_TITLE));

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

            AddAction(ACTION_SHOW);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_ACCOUNTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_ACTIVATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_API));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_CLEARAUTHORIZE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_CREATEACCOUNT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_ENABLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_FROMCURRENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_GCCOMACCOUNT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_MENBERSHIP));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_NO));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_REMOVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_YES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AccountsForm.STR_NEWACCOUNT));

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