public EmpDirDetail(Employee data) { InitializeComponent (); //Bind data to form this.BindingContext = data; //Center map on city MyMap.MoveToRegion( MapSpan.FromCenterAndRadius( new Position(data.GeoLocation.Lattitude,data.GeoLocation.Longitude), Distance.FromMiles(5))); }
protected Employee[] ParseEmployeeResultSet(JsonObject obj) { Employee[] emp = new Employee[obj["resultSet"].Count]; emp = JsonConvert.DeserializeObject<Employee[]> (obj ["resultSet"].ToString ()); return emp; }