Please consider that I have in an entity a property
public double RealVolume
{
get
{
return _RealVolume;
}
set
{
SetPropertyValue("RealVolume", ref _RealVolume, value);
}
}
then I also have
[Browsable(false)]
public VolumeType VolumeOrVolumePoints
{
get
{
return WMSSystemSetting.Get_VolumeOrVolumePoints(Session);
}
}
I want that when VolumeOrVolumePoints == VolumeType.Volume
then RealVolume
to be validated as an integer otherwise validated as double number.
How could I achieve this? Thanks!