protected override void InitializeComponent(ICore core) { ComponentRegistry.Instance.ForEach <IBackgroundTaskSource>(component => component.BackgroundTask += this.OnBackgroundTask); this.ErrorEmitter = core.Components.ErrorEmitter; this.ErrorEmitter.Error += this.OnError; base.InitializeComponent(core); }
public override void InitializeComponent(ICore core) { this.Core = core; this.Output = core.Components.Output; this.Output.IsStartedChanged += this.OnIsStartedChanged; this.OutputStreamQueue = core.Components.OutputStreamQueue; this.OutputStreamQueue.Dequeued += this.OutputStreamQueueDequeued; this.ErrorEmitter = core.Components.ErrorEmitter; base.InitializeComponent(core); }
public override void InitializeComponent(ICore core) { this.Volume = core.Components.OutputEffects.Volume; if (this.Volume != null) { this.Volume.EnabledChanged += this.OnVolumeEnabledChanged; this.Volume.ValueChanged += this.OnVolumeValueChanged; } this.ErrorEmitter = core.Components.ErrorEmitter; base.InitializeComponent(core); }
public override void InitializeComponent(ICore core) { this.Core = core; this.LibraryHierarchyBrowser = core.Components.LibraryHierarchyBrowser; this.PlaylistBrowser = core.Components.PlaylistBrowser; this.DatabaseFactory = core.Factories.Database; this.PlaybackManager = core.Managers.Playback; this.PlaybackManager.CurrentStreamChanged += this.OnCurrentStreamChanged; this.SignalEmitter = core.Components.SignalEmitter; this.SignalEmitter.Signal += this.OnSignal; this.ErrorEmitter = core.Components.ErrorEmitter; this.Refresh(); base.InitializeComponent(core); }
public override void InitializeComponent(ICore core) { this.Core = core; this.ErrorEmitter = core.Components.ErrorEmitter; base.InitializeComponent(core); }