Пример #1
0
 private void btnOpenSerialModule3_Click(object sender, EventArgs e)
 {
     mf.OpenModule3Port();
     if (mf.spModule3.IsOpen)
     {
         cboxModule3Port.Enabled       = false;
         btnCloseSerialModule3.Enabled = true;
         btnOpenSerialModule3.Enabled  = false;
         lblCurrentModule3Port.Text    = mf.spModule3.PortName;
     }
     else
     {
         cboxModule3Port.Enabled       = true;
         btnCloseSerialModule3.Enabled = false;
         btnOpenSerialModule3.Enabled  = true;
     }
 }