Пример #1
0
 private void btnOpenRTCM_Click(object sender, EventArgs e)
 {
     mf.OpenRtcmPort();
     if (mf.spRtcm.IsOpen)
     {
         cboxRtcmBaud.Enabled = false;
         cboxRtcmPort.Enabled = false;
         btnCloseRTCM.Enabled = true;
         btnOpenRTCM.Enabled  = false;
         labelRtcmBaud.Text   = mf.spRtcm.BaudRate.ToString();
         labelRtcmPort.Text   = mf.spRtcm.PortName;
     }
     else
     {
         cboxRtcmBaud.Enabled = true;
         cboxRtcmPort.Enabled = true;
         btnCloseRTCM.Enabled = false;
         btnOpenRTCM.Enabled  = true;
         MessageBox.Show("Unable to connect to Port");
     }
 }