void Button1Click(object sender, System.EventArgs e)
        {
            if (m_GPSWrapper.GPSConnected())
            {
                m_GPSWrapper.StopGPSReceiver();
                this.button1.Text = "Start";
            }
            else
            {
                m_GPSWrapper.CommPort = this.commport.Text;
                m_GPSWrapper.StartGPSReceiver();

                if (m_GPSWrapper.GPSConnected())
                {
                    this.button1.Text = "Stop";
                }
            }
        }
Exemple #2
0
        void StartStockTrackBtnClick(object sender, System.EventArgs e)
        {
            if (m_GPSWrapper.GPSConnected())
            {
                m_GPSWrapper.StopGPSReceiver();
                this.StartStockTrackBtn.Text = "Start";
            }
            else
            {
                m_GPSWrapper.CommPort         = this.commport.Text;
                m_GPSWrapper.CommPortBaudRate = m_iGPSCOMPortBaudRate;
                m_GPSWrapper.StartGPSReceiver();

                if (m_GPSWrapper.GPSConnected())
                {
                    this.StartStockTrackBtn.Text = "Stop";
                }
            }
        }