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

            AddAction(ACTION_SHOW);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_APPLY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_FINDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_GCCODE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_GCNAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_GCOWNER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbsOverviewForm.STR_NAME));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ThumbInfoItem.STR_BY));

            return await base.InitializeAsync(core);
        }
示例#2
0
文件: Viewer.cs 项目: gahadzikwa/GAPP
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_SHOW);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GRABBING_IMAGES));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_BY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_DATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_LOG));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_SLIDESHOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ViewerForm.STR_TEXT));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_CACHEDATA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_DOWNLOADALL));

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