Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        void PlayerService_SendTunerDevice(string displayName, out TunerDevice dev)
        {
            FormJanelaFinal window = playerWindows[displayName];

            dev = window.GetTunerDevice();
        }
Esempio n. 4
0
        void PlayerService_TuneToChannel(string deviceName, WCFChannel ch)
        {
            FormJanelaFinal window = playerWindows[deviceName];

            window.SetChannel(NetWCFConverter.ToNET(ch));
        }