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

            AddAction(ACTION_GRAB_ACTIVE);
            AddAction(ACTION_GRAB_SELECTED);
            AddAction(ACTION_CREATE_ACTIVE);
            AddAction(ACTION_CREATE_SELECTED);
            AddAction(ACTION_GRAB_SEP);
            AddAction(ACTION_GRAB_DELETE_ACTIVE);
            AddAction(ACTION_GRAB_DELETE_SELECTED);
            AddAction(ACTION_GRAB_DELETE_ALL);
            AddAction(ACTION_GRAB_SEP);
            AddAction(ACTION_DELETEFOLDER_ACTIVE);
            AddAction(ACTION_DELETEFOLDER_SELECTED);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GRABBING_IMAGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_DELETING_GRABBED_IMAGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_DELETING_IMAGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOCACHESSELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GRABNEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_GRABIMAGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFOLDER));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_DOWNLOAD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_FOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_NOTINDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(CopyToFolderForm.STR_CLEAR));

            PluginSettings.Instance.ActiveDataPath = System.IO.Path.Combine(core.PluginDataPath, "ImgGrab" );
            try
            {
                initFolder();
            }
            catch
            {
            }
            return await base.InitializeAsync(core);
        }
Example #2
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
Example #3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }