Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox4.Text == "ON")
     {
         textBox2.Text = "0";
         textBox4.Text = "OFF";
         button1.Text  = "开始监听";
         lwc.stop();
     }
     else
     {
         textBox4.Text = "ON";
         button1.Text  = "停止监听";
         lwc.start(textBox1.Text, int.Parse(textBox3.Text));
     }
 }
Exemplo n.º 2
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     lwc.stop();
 }