コード例 #1
0
ファイル: BrowserPlugin.cs プロジェクト: gahadzikwa/GAPP
        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(WebbrowserForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(WebbrowserForm.STR_COMPMODECHANGED));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_HOMEPAGE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_NAMESPACE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_SYSTEMSCRIPTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_USERSCRIPTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_SUPPRESSSCRIPTERRORS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsForm.STR_COMPATIBILITY));

            return await base.InitializeAsync(core);
        }
コード例 #2
0
ファイル: PluginSettings.cs プロジェクト: gahadzikwa/GAPP
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }