Example #1
0
 public ControlForm(ClientPoint cp)
 {
     InitializeComponent();
     m_clientPoint       = cp;
     communicateToClient = new ClientSession(cp.client);
     this.MouseWheel    += new MouseEventHandler(Form1_MouseWheel); //应添加到窗体然后再设置picturebox焦点
     this.Focus();
     this.capture_panel.Visible = false;
     this.vedio_panel.Visible   = false;
 }
Example #2
0
        public void ShowClientsinGrid(ClientPoint one_client)
        {
            Console.WriteLine("write into gridview\n");
            int index = this.dataGridView1.Rows.Add();

            this.dataGridView1.Rows[index].Cells[0].Value = one_client.client.RemoteEndPoint;
            this.dataGridView1.Rows[index].Cells[1].Value = one_client.localtion.ToString();
            this.dataGridView1.Rows[index].Cells[2].Value = "监听";
            this.dataGridView1.Rows[index].Cells[3].Value = "信息学院640";
        }
Example #3
0
        private bool isOnline(ClientPoint point)
        {
            ClientSession client = new ClientSession(point.client);

            return(client.heartCheck(5 * 60)); //等待时间为5分钟
        }