private void SetPointLatLonList() { try { PointLatLonList = GpsOperations.GetPointLatLonList(); CurrentLng = PointLatLonList[0].Longitude.Value; CurrentLat = PointLatLonList[0].Latitude.Value; this.CurrentX = this.MainCanvas.Width / 3; //this.CurrentY = 10; this.CurrentY = this.MainCanvas.Height / 3; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void SetPointLatLonList() { try { PointLatLonList = GpsOperations.GetPointLatLonList(); Console.WriteLine(PointLatLonList.Count); CurrentLng = PointLatLonList[0].Longitude.Value; CurrentLat = PointLatLonList[0].Latitude.Value; RecentlyPointLatLonList.Add(PointLatLonList[0]); this.CurrentX = this.content.Width / 2; //this.CurrentY = 10; this.CurrentY = this.content.Height / 2; } catch (Exception ex) { MessageBox.Show(ex.Message); } }