Exemplo n.º 1
0
        private void buttonX5_Click(object sender, EventArgs e)
        {
            sinffer.Stop();
            sinffer.XYBufferIn -= new XYBufferInHander(sinffer_XYBufferIn);
            sinffer             = null;

            isStop           = true;
            buttonX4.Enabled = true;
            buttonX5.Enabled = false;
        }
Exemplo n.º 2
0
 private void buttonX4_Click(object sender, EventArgs e)
 {
     if (this.comboBoxEx1.SelectedItem != null)
     {
         sinffer             = new XYSocketSinffer(this.comboBoxEx1.SelectedItem.ToString());
         BindIp              = this.comboBoxEx1.SelectedItem.ToString();
         sinffer.XYBufferIn += new XYBufferInHander(sinffer_XYBufferIn);
         sinffer.Start();
         isStop           = false;
         buttonX4.Enabled = false;
         buttonX5.Enabled = true;
     }
     else
     {
         MessageBox.Show("请选择IP地址");
     }
 }