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; }
public PropertyValueWithFieldNameEditViewModel(PropertyValueBase item) : base(item) { Priority = item.Priority; }