Exemplo n.º 1
0
        public static void HandleMonitorsResponse(Client client, MonitorsResponse packet)
        {
            if (client.Value.FrmRdp == null)
            {
                return;
            }

            client.Value.FrmRdp.AddMonitors(packet.Number);
        }
Exemplo n.º 2
0
        public static void HandleMonitorsResponse(Client client, MonitorsResponse packet)
        {
            if (client.Value.FrmRdp == null)
            {
                return;
            }

            try
            {
                client.Value.FrmRdp.Invoke((MethodInvoker) delegate
                {
                    for (int i = 0; i < packet.Number; i++)
                    {
                        client.Value.FrmRdp.cbMonitors.Items.Add(string.Format("Monitor {0}", i + 1));
                    }
                    client.Value.FrmRdp.cbMonitors.SelectedIndex = 0;
                });
            }
            catch
            { }
        }