コード例 #1
0
        private void RefreshScreen()
        {
            GPSData m_currentData = m_GPSWrapper.GetCurrentGPSData();

            this.txtNoOfSatellites.Text = Convert.ToString(m_currentData.NoOfTrackedSatellites);
            this.txtFixType.Text        = m_currentData.FixType;
            this.txtFixTime.Text        = m_currentData.TimeOfLastFixGPS;

            // latest tatitude and longitude stored in object
            this.txtLongitude.Text = m_currentData.LatestFixPosition.GetLongitude(CoordinateFormat.DegreesMinutesSeconds);
            this.txtLatitude.Text  = m_currentData.LatestFixPosition.GetLatitude(CoordinateFormat.DegreesMinutesSeconds);
            this.txtCurrSpeed.Text = m_currentData.CurrentSpeed(UnitOfMeasure.Mile).ToString();

            this.txtErrorCount.Text = m_iErrorCount.ToString();;
        }