コード例 #1
0
ファイル: BookingEntry.cs プロジェクト: avantidesai/EmpireCLS
		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;
		}
コード例 #2
0
ファイル: BookingEntry.cs プロジェクト: avantidesai/EmpireCLS
		public void UpdateTextAndDetails (string text, string detail, LocationFinderItemType itemType = LocationFinderItemType.LookupPlaceholder)
		{
			this.Text = text;
			this.Detail = detail;
			this.Type = itemType;
		}