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 { } }
void PlayerService_OpenPlayerWindow2(WCFPlayerWindowInformation2 config) { Player_OpenPlayerWindow2(NetWCFConverter.ToNET(config)); }
void PlayerService_EditPlayerWindow(WCFPlayerWindowInformation config) { Player_EditPlayerWindow(NetWCFConverter.ToNET(config)); }
void PlayerService_TuneToChannel(string deviceName, WCFChannel ch) { FormJanelaFinal window = playerWindows[deviceName]; window.SetChannel(NetWCFConverter.ToNET(ch)); }
public override TV2Lib.Channel GetCurrentTVChannel() { return(NetWCFConverter.ToNET(player.GetCurrentTVChannel(player.GetPrimaryDisplay().DeviceID))); }
public override IEnumerable <TV2Lib.Channel> GetTVChannels() { var channels = player.GetChannels(); return(NetWCFConverter.ToNET(channels)); }
} //ALTERAR PARA RECEBER O DEVICEID DO MONITOR public override ScreenInformation[] GetDisplayInformation() { return(NetWCFConverter.ToNET(player.GetDisplayInformation())); }