public FormTriggersConfig( [NotNull] TriggerManager triggerManager, [NotNull] ISoundManager soundManager, [NotNull] IWindowManager windowManager, [NotNull] IExporterFactory exporterFactory, [NotNull] IImporterFactory importerFactory) { if (triggerManager == null) throw new ArgumentNullException(nameof(triggerManager)); if (soundManager == null) throw new ArgumentNullException(nameof(soundManager)); if (windowManager == null) throw new ArgumentNullException(nameof(windowManager)); if (exporterFactory == null) throw new ArgumentNullException(nameof(exporterFactory)); if (importerFactory == null) throw new ArgumentNullException(nameof(importerFactory)); InitializeComponent(); this.triggerManager = triggerManager; this.soundManager = soundManager; this.windowManager = windowManager; this.exporterFactory = exporterFactory; this.importerFactory = importerFactory; BuildFormText(); UpdateMutedState(); TriggersListView.SetObjects(this.triggerManager.Triggers); timer1.Enabled = true; }
private void RefreshBankAndList() { TriggersListView.SetObjects(this.triggerManager.Triggers, true); }