Beispiel #1
0
        public BaseBatchForm(IInternalPluginManager pluginManager)
        {
            ContractAssertions.IsNotNull(pluginManager, nameof(pluginManager));

            InitializeComponent();

            Logger          = InitializeLogger();
            _batchProcessor = InitializeBatchProcessor(pluginManager, Logger);

            _avgTimer          = new System.Timers.Timer(300);
            _avgTimer.Elapsed += avgTimer_Elapsed;

            var loadedPlugins = LoadPlugins(pluginManager);

            cmbPlugins.Items.Add(PluginElement.Empty);
            foreach (var loadedPlugin in loadedPlugins)
            {
                cmbPlugins.Items.Add(loadedPlugin);
            }

            cmbPlugins.SelectedIndex = 0;
        }
Beispiel #2
0
 protected override BaseBatchProcessor InitializeBatchProcessor(IInternalPluginManager pluginManager, ILogger logger)
 {
     return(new BatchExtractor(pluginManager, logger));
 }
Beispiel #3
0
 public BatchExtractDialog(IInternalPluginManager pluginManager) : base(pluginManager)
 {
 }
Beispiel #4
0
 public BatchExtractor(IInternalPluginManager pluginManager, ILogger logger) :
     base(pluginManager, logger)
 {
 }
Beispiel #5
0
 private IList <PluginElement> LoadPlugins(IInternalPluginManager pluginManager)
 {
     return(pluginManager.GetFilePlugins().Select(x => new PluginElement(x)).OrderBy(x => x.ToString()).ToArray());
 }
Beispiel #6
0
 protected abstract BaseBatchProcessor InitializeBatchProcessor(IInternalPluginManager pluginManager, ILogger logger);
Beispiel #7
0
 public MainContext(IInternalPluginManager pluginManager, IProgressContext progressContext) :
     base(pluginManager, progressContext)
 {
 }
 public BatchExtractionForm(IInternalPluginManager pluginManager) : base(pluginManager)
 {
 }
Beispiel #9
0
        public BaseFileContext(IInternalPluginManager pluginManager, ContextNode parentContextNode)
        {
            PluginManager = pluginManager;

            ContextNode = parentContextNode;
        }
Beispiel #10
0
        public BaseFileContext(IInternalPluginManager pluginManager)
        {
            PluginManager = pluginManager;

            ContextNode = new ContextNode();
        }
        public AnmcRessource(IInternalPluginManager pluginManager)
        {
            ContractAssertions.IsNotNull(pluginManager, nameof(pluginManager));

            _pluginManager = pluginManager;
        }
Beispiel #12
0
 protected override BaseBatchProcessor InitializeBatchProcessor(IInternalPluginManager pluginManager, IConcurrentLogger logger)
 {
     return(new BatchInjector(pluginManager, logger));
 }
Beispiel #13
0
 public static IEnumerable <IGameAdapter> GetGameAdapters(this IInternalPluginManager pluginManager)
 {
     return(pluginManager.GetGamePluginLoaders().SelectMany(x => x.Plugins));
 }
Beispiel #14
0
 public static IEnumerable <IFilePlugin> GetNonIdentifiableFilePlugins(this IInternalPluginManager pluginManager)
 {
     return(pluginManager.GetFilePluginLoaders().GetNonIdentifiableFilePlugins());
 }
Beispiel #15
0
 public MainContext(IInternalPluginManager pluginManager) : base(pluginManager)
 {
 }