public LocationFinderItem (Address profileAddress, LocationFinderItemType type) { if (profileAddress.IsPrimary) this.Type = LocationFinderItemType.Home; else this.Type = type; this.DataItem = profileAddress; this.Text = profileAddress.LocationDescription; this.Detail = string.Format ("{0}\n{1}, {2} {3}", profileAddress.LocationAddress, profileAddress.LocationCity, profileAddress.LocationState, profileAddress.LocationZip); this.FormattedAddress = profileAddress.FormattedAddress; }
public void UpdateTextAndDetails (string text, string detail, LocationFinderItemType itemType = LocationFinderItemType.LookupPlaceholder) { this.Text = text; this.Detail = detail; this.Type = itemType; }