Пример #1
0
 private void btnCloseSerialModule2_Click(object sender, EventArgs e)
 {
     mf.CloseModule2Port();
     if (mf.spModule2.IsOpen)
     {
         cboxModule2Port.Enabled       = false;
         btnCloseSerialModule2.Enabled = true;
         btnOpenSerialModule2.Enabled  = false;
     }
     else
     {
         cboxModule2Port.Enabled       = true;
         btnCloseSerialModule2.Enabled = false;
         btnOpenSerialModule2.Enabled  = true;
     }
 }