Exemplo n.º 1
0
 public StartupModuleData(
     IDisplay display,
     ITextViewNavigator textViewNavigator,
     ILifecycleConfiguration lifecycleConfiguration,
     IGreetingProvider greetingProvider,
     IDisposable disposer)
 {
     this.Display                = display;
     this.TextViewNavigator      = textViewNavigator;
     this.LifecycleConfiguration = lifecycleConfiguration;
     this.GreetingProvider       = greetingProvider;
     this.Disposer               = disposer;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserInterfaceModule" /> class.
 /// </summary>
 /// <param name="application">The application.</param>
 /// <param name="userInterfaceBridge">The user interface framework.</param>
 /// <param name="controlsModule">The controls module.</param>
 /// <param name="musicPlayer">The music player.</param>
 /// <param name="playerModule">The player module.</param>
 /// <param name="volumeModule">The volume module.</param>
 /// <param name="allowShutdown">if set to <c>true</c> [allow shutdown].</param>
 /// <param name="lifecycleConfiguration">The lifecycle configuration.</param>
 /// <param name="timeoutConfiguration">The timeout configuration.</param>
 /// <param name="reporters">The reporters.</param>
 public UserInterfaceModule(
     IApplication application,
     IUserInterfaceBridge userInterfaceBridge,
     IControlsModule controlsModule,
     IMusicPlayer musicPlayer,
     PlayerModule playerModule,
     VolumeModule volumeModule,
     bool allowShutdown,
     ILifecycleConfiguration lifecycleConfiguration,
     ITimeoutConfiguration timeoutConfiguration,
     Reporters?reporters = null)
 {
     this.application            = application;
     this.userInterfaceBridge    = userInterfaceBridge;
     this.controlsModule         = controlsModule;
     this.musicPlayer            = musicPlayer;
     this.playerModule           = playerModule;
     this.volumeModule           = volumeModule;
     this.allowShutdown          = allowShutdown;
     this.lifecycleConfiguration = lifecycleConfiguration;
     this.timeoutConfiguration   = timeoutConfiguration;
     this.reporters = reporters;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ViewFactory" /> class.
 /// </summary>
 /// <param name="musicPlayer">The music player.</param>
 /// <param name="playerController">The player controller.</param>
 /// <param name="volumeService">The volume service.</param>
 /// <param name="menuController">The menu controller.</param>
 /// <param name="lifecycleConfiguration">The lifecycle configuration.</param>
 public ViewFactory(IMusicPlayer musicPlayer, PlayerController playerController, IVolumeService volumeService, MenuController menuController, ILifecycleConfiguration lifecycleConfiguration)
 {
     this.playerView   = new Lazy <PlayerTextView>(() => new PlayerTextView(playerController, musicPlayer, volumeService), LazyThreadSafetyMode.ExecutionAndPublication);
     this.menuView     = new Lazy <MenuTextView>(() => new MenuTextView(new NetworkDeviceInfoProvider(), menuController));
     this.volumeView   = new Lazy <VolumeTextView>(() => new VolumeTextView(volumeService), LazyThreadSafetyMode.ExecutionAndPublication);
     this.shutdownView = new Lazy <ShutdownTextView>(() => new ShutdownTextView(lifecycleConfiguration));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShutdownTextView"/> class.
 /// </summary>
 /// <param name="lifecycleConfiguration">The startup configuration.</param>
 public ShutdownTextView(ILifecycleConfiguration lifecycleConfiguration)
 {
     this.lifecycleConfiguration = lifecycleConfiguration;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StartupTextView" /> class.
 /// </summary>
 /// <param name="greetingProvider">The greeting provider.</param>
 /// <param name="lifecycleConfiguration">The startup configuration.</param>
 public StartupTextView(IGreetingProvider greetingProvider, ILifecycleConfiguration lifecycleConfiguration)
 {
     this.greetingProvider       = greetingProvider;
     this.lifecycleConfiguration = lifecycleConfiguration;
 }