Пример #1
0
 private void btnOpenSerialSteerModule_Click(object sender, EventArgs e)
 {
     mf.OpenSteerModulePort();
     if (mf.spSteerModule.IsOpen)
     {
         cboxSteerModulePort.Enabled       = false;
         btnCloseSerialSteerModule.Enabled = true;
         btnOpenSerialSteerModule.Enabled  = false;
         lblCurrentSteerModulePort.Text    = mf.spSteerModule.PortName;
     }
     else
     {
         cboxSteerModulePort.Enabled       = true;
         btnCloseSerialSteerModule.Enabled = false;
         btnOpenSerialSteerModule.Enabled  = true;
     }
 }