void PlayerService_SetTunerDevice(string displayName, TunerDevice dev) { FormJanelaFinal window = playerWindows[displayName]; if (window.Controls.OfType <DigitalTVScreen>().Count() == 1) { DigitalTVScreen temp = window.Controls.OfType <DigitalTVScreen>().ToList()[0]; temp.Devices.TunerDevice = DigitalTVScreen.DeviceStuff.TunerDevices.Values.Single(x => x.DevicePath == dev.DevicePath); } }
void Player_OpenPlayerWindow(PlayerWindowInformation config) { if (playerWindows.Keys.Contains(config.Display.DeviceID)) { return; } FormJanelaFinal newWindow = new FormJanelaFinal(playerWindows, config.Display.DeviceID); newWindow.Show(config); playerWindows.Add(config.Display.DeviceID, newWindow); }
void PlayerService_SendTunerDevice(string displayName, out TunerDevice dev) { FormJanelaFinal window = playerWindows[displayName]; dev = window.GetTunerDevice(); }
void PlayerService_TuneToChannel(string deviceName, WCFChannel ch) { FormJanelaFinal window = playerWindows[deviceName]; window.SetChannel(NetWCFConverter.ToNET(ch)); }