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

            AddAction(ACTION_SELECT);
            return await base.InitializeAsync(core);
        }
Exemple #2
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
Exemple #3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }
Exemple #4
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(AttachementsForm.STR_ADD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AttachementsForm.STR_COMMENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AttachementsForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AttachementsForm.STR_FILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AttachementsForm.STR_OPEN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AttachementsForm.STR_TITLE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddFilesForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddFilesForm.STR_ADD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddFilesForm.STR_COMMENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddFilesForm.STR_FILES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddFilesForm.STR_OK));

            initDatabase(core);

            return await base.InitializeAsync(core);
        }