示例#1
0
文件: WS2300.cs 项目: faina09/WS2300
 private void BtnOpen_Click(object sender, EventArgs e)
 {
     try
     {
         config.port = comboBoxCom.Text;
         ws2300      = new WS2300base(config.port);
         string str = ws2300.status();
         this.toolStripStatusLabel.Text = str;
     }
     catch (Exception ex)
     {
         this.toolStripStatusLabel.Text = ex.Message;
     }
 }