Beispiel #1
0
partial         static void CreateCustomDemo(ref Location customDemoObject)
        {
            customDemoObject = Location.CreateDefault();
            customDemoObject.LocationName = "Demo location";
            customDemoObject.Latitude.TextValue = "0";
            customDemoObject.Longitude.TextValue = "0";
        }
Beispiel #2
0
 public void SetLocationTextFromLocation(Location location)
 {
     string longitude = String.IsNullOrEmpty(location.Longitude.TextValue) ? "0" : location.Longitude.TextValue;
     string latitude = String.IsNullOrEmpty(location.Latitude.TextValue) ? "0" : location.Latitude.TextValue;
     LocationText = string.Format("{0},{1}", latitude, longitude);
 }