예제 #1
0
        public LedManagerPresenter(ILedManagerView view,
                                   IConfigurationStorageService configurationStorageService,
                                   IBrightnessService brightnessService,
                                   IVideoMetadataService videoMetadataService)
        {
            this.configurationStorageService = configurationStorageService;
            this.brightnessService           = brightnessService;
            this.videoMetadataService        = videoMetadataService;
            this.view = view;

            this.view.NewConfiguration  += NewConfiguration;
            this.view.SaveConfiguration += SaveConfiguration;
            this.view.OpenConfiguration += OpenConfiguration;

            this.view.AddNewServer += AddNewServer;
            this.view.EditServer   += EditServer;
            this.view.RemoveServer += RemoveServer;

            this.view.PreviewBrightnessChanged += PreviewBrightnessChanged;
            this.view.BrightnessChanged        += BrightnessChanged;

            this.view.ImportVideo      += ImportVideo;
            this.view.StartTimeChanged += StartTimeChanged;

            this.view.InitializePlayback += InitializePlayback;
            this.view.Play += Play;
            this.view.Stop += Stop;

            this.view.ShowServerStatus += ShowServerStatus;

            this.view.PlaybackStatus = PlaybackStatus.NotReady;

            NewConfiguration(null, EventArgs.Empty);
        }
 public YamlConfigurationProvider(IConfigurationStorageService storageService)
 {
     this.storageService = storageService;
 }