Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 public override void InitializeComponent(ICore core)
 {
     this.Core         = core;
     this.ErrorEmitter = core.Components.ErrorEmitter;
     base.InitializeComponent(core);
 }