Example #1
0
 private void btnCloseSerial_Click(object sender, EventArgs e)
 {
     mf.CloseGPSPort();
     if (mf.spGPS.IsOpen)
     {
         cboxBaud.Enabled       = false;
         cboxPort.Enabled       = false;
         btnCloseSerial.Enabled = true;
         btnOpenSerial.Enabled  = false;
     }
     else
     {
         cboxBaud.Enabled       = true;
         cboxPort.Enabled       = true;
         btnCloseSerial.Enabled = false;
         btnOpenSerial.Enabled  = true;
     }
 }