bool buttonBool = false;//指示按钮是开还是关 public COMForm() { InitializeComponent(); commBar = new CommBar(); CheckForIllegalCrossThreadCalls = false; }
//用来为文本框赋值 private void CodeText(CommBar commBar) { this.textBox_TestTxt.Text = commBar.Code; }