public void Start() { _photonLedControllerCommunicator = new FakePhotonLedControllerCommunicator(); _photonLedControllerCommunicator.CycleTimeRead += _photonLedControllerCommunicator_CycleTimeRead; _photonLedControllerCommunicator.TimeProgressRead += _photonLedControllerCommunicator_TimeProgressRead; _photonLedControllerCommunicator.ColorTimePointsRead += _photonLedControllerCommunicator_ColorTimePointsRead; _photonLedControllerCommunicator.Start(); _rootSurface = new RootSurfaceComponent(_photonLedControllerCommunicator); _photonLedControllerCommunicator.ReadCycleTime(); _photonLedControllerCommunicator.ReadColorTimePoints(); _photonLedControllerPollingService = new PhotonLedControllerPollingService(_photonLedControllerCommunicator); _photonLedControllerPollingService.Start(); _engine.Start(); }
private void _slider_ValueChanged(object sender, EventArgs <float> e) { _photonLedControllerCommunicator.WriteColorTimePointTime(_id, e.Data); _photonLedControllerCommunicator.ReadColorTimePoints(); }