示例#1
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     DeviceID = null;
     deviceListener.RemoveAll();
     label4.Text      = "";
     label5.Text      = "";
     label6.Text      = "";
     label7.Text      = "";
     label10.Text     = "";
     label11.Text     = "";
     panel1.BackColor = SystemColors.Control;
     panel2.BackColor = SystemColors.Control;
     panel3.BackColor = SystemColors.Control;
     panel4.BackColor = SystemColors.Control;
     panel5.BackColor = SystemColors.Control;
     panel6.BackColor = SystemColors.Control;
 }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     deviceListener.RemoveAll();
     listBox1.Items.Clear();
 }