コード例 #1
0
		public PropertyValueEditViewModel(PropertyValueBase item)
		{
			InnerItem = item;

			var itemValueType = (PropertyValueType)InnerItem.ValueType;
			IsShortStringValue = itemValueType == PropertyValueType.ShortString;
			IsLongStringValue = itemValueType == PropertyValueType.LongString;
			IsDecimalValue = itemValueType == PropertyValueType.Decimal;
			IsIntegerValue = itemValueType == PropertyValueType.Integer;
			IsBooleanValue = itemValueType == PropertyValueType.Boolean;
			IsDateTimeValue = itemValueType == PropertyValueType.DateTime;
		}
コード例 #2
0
		public PropertyValueWithFieldNameEditViewModel(PropertyValueBase item)
			: base(item)
		{
			Priority = item.Priority;
		}