Exemplo n.º 1
0
 /// <ToBeCompleted></ToBeCompleted>
 protected virtual void SaveFieldsCore(IRepositoryWriter writer, int version)
 {
     writer.WriteString(name);
     if (version >= 4)
     {
         writer.WriteChar(SecurityDomainName);
     }
 }
Exemplo n.º 2
0
 void IEntity.SaveFields(IRepositoryWriter writer, int version)
 {
     writer.WriteString(name);
     if (version >= 3) writer.WriteString(title);
     if (version >= 4) writer.WriteChar(securityDomainName);
     writer.WriteInt32(size.Width);
     writer.WriteInt32(size.Height);
     writer.WriteInt32(BackgroundColor.ToArgb());
     writer.WriteInt32(BackgroundGradientColor.ToArgb());
     if (NamedImage.IsNullOrEmpty(backImage)) {
         writer.WriteString(string.Empty);
         writer.WriteImage(null);
     } else {
         writer.WriteString(backImage.Name);
         object imgTag = backImage.Image.Tag;
         backImage.Image.Tag = backImage.Name;
         writer.WriteImage(backImage.Image);
         backImage.Image.Tag = imgTag;
     }
     writer.WriteByte((byte)imageLayout);
     writer.WriteFloat(imageGamma);
     writer.WriteByte(imageTransparency);
     writer.WriteBool(imageGrayScale);
     writer.WriteInt32(imageTransparentColor.ToArgb());
 }