private void Modifying()
{
//if (OwnerNode != null)
// OwnerNode.BackwardCompatibilityPropertySet(PropertyType.Name, this);
if (IsModified)
return;
//-- Clone
var orig = (BinaryDataValue)OwnerNode.Data.GetDynamicRawData(PropertyType);
BinaryDataValue data;
if (orig == null)
{
data = GetDefaultRawData();
}
else
{
data = new BinaryDataValue
{
Id = orig.Id,
ContentType = orig.ContentType,
FileName = orig.FileName,
Size = orig.Size,
Checksum = orig.Checksum,
Stream = orig.Stream
};
}
OwnerNode.MakePrivateData();
OwnerNode.Data.SetDynamicRawData(PropertyType, data, false);
}
private void Modified()