private async void ExecuteSelect(GoogleMapTables address) { try { if (address != null && Map != null) { var position = new Position(address.Latitude, address.Longitude); // Latitude, Longitude var pin = new Pin { Type = PinType.Place, Position = position, Label = "custom pin", Address = "custom detail info" }; Map.Pins.Clear(); Map.Pins.Add(pin); Map.MoveToRegion(MapSpan.FromCenterAndRadius(position, Distance.FromMiles(1))); await RaisePropertyChanged("Map"); } else if (Map == null) { if (_connection.IsConnected()) { await SetMap(); } throw new Exception("Map not accessible."); } else if (address == null) { throw new Exception("Address is empty."); } } catch (Exception ex) { _quickMessageDependency.ShowToastMessage(ex.Message); } }
private async void ExecuteRemoveAddress(GoogleMapTables place) { await _googleMapTableAccess.Delete(place); await RefreshList(); }
public AddressResult(object sender, GoogleMapTables address) : base(sender) { Address = address; }