Beispiel #1
0
 private void button_StartOrStopReceive_Click(object sender, EventArgs e)
 {
     if (helper.recStaus == true)//当前为开启接收状态
     {
         helper.StopReceiving();
         button_StartOrStopReceive.Text = "开启接收";//按钮显示为开启接收
     }
     else//当前状态为关闭接收状态
     {
         helper.StartReceiving();
         button_StartOrStopReceive.Text = "暂停接收";//按钮显示状态改为暂停接收
     }
 }