void Devices_PositionChanged(object sender, GeoFramework.PositionEventArgs e) { locationLabel.Text = nmea.Position.ToString(); }
private void nmeaInterpreter1_SentenceReceived(object sender, GeoFramework.Gps.Nmea.NmeaSentenceEventArgs e) { BeginInvoke(new MethodInvoker(delegate() { if (sentenceListBox.Items.Count >= 100) sentenceListBox.Items.RemoveAt(0); sentenceListBox.Items.Add(e.Sentence.ToString()); sentenceListBox.SelectedIndex = sentenceListBox.Items.Count - 1; statusLabel.Text = "Receiving GPS data."; })); }