Esempio n. 1
0
        private void computadoresToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ServiceList lista = new ServiceList();

                if (lista.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    Connection = new WCFConnection(lista.PC);

                    Connection.Open();

                    groupBoxPC.Text = string.Format("Ligado a: {0}", lista.PC.Name);

                    listViewDisplays.Items.Clear();

                    foreach (var display in lista.PC.Displays)
                    {
                        var item = new ListViewItem(display.DeviceID)
                        {
                            Tag = display, ToolTipText = string.Format("Nome: {0}{1}Resolução: {2}{1}Primário: {3}", display.DeviceID, Environment.NewLine, display.Bounds.Size.ToString(), (display.Primary ? "Sim" : "Não"))
                        };

                        listViewDisplays.Items.Add(item);

                        if (display.Primary)
                        {
                            this.finalResolution = NetWCFConverter.ToNET(display.Bounds.Size);
                        }
                    }
                }
            }
            catch
            {
            }
        }
Esempio n. 2
0
 void PlayerService_OpenPlayerWindow2(WCFPlayerWindowInformation2 config)
 {
     Player_OpenPlayerWindow2(NetWCFConverter.ToNET(config));
 }
Esempio n. 3
0
 void PlayerService_EditPlayerWindow(WCFPlayerWindowInformation config)
 {
     Player_EditPlayerWindow(NetWCFConverter.ToNET(config));
 }
Esempio n. 4
0
        void PlayerService_TuneToChannel(string deviceName, WCFChannel ch)
        {
            FormJanelaFinal window = playerWindows[deviceName];

            window.SetChannel(NetWCFConverter.ToNET(ch));
        }
Esempio n. 5
0
 public override TV2Lib.Channel GetCurrentTVChannel()
 {
     return(NetWCFConverter.ToNET(player.GetCurrentTVChannel(player.GetPrimaryDisplay().DeviceID)));
 }
Esempio n. 6
0
        public override IEnumerable <TV2Lib.Channel> GetTVChannels()
        {
            var channels = player.GetChannels();

            return(NetWCFConverter.ToNET(channels));
        }
Esempio n. 7
0
        } //ALTERAR PARA RECEBER O DEVICEID DO MONITOR

        public override ScreenInformation[] GetDisplayInformation()
        {
            return(NetWCFConverter.ToNET(player.GetDisplayInformation()));
        }