Example #1
0
 /// <ToBeCompleted></ToBeCompleted>
 protected virtual void LoadFieldsCore(IRepositoryReader reader, int version)
 {
     name = reader.ReadString();
     if (version >= 4)
     {
         SecurityDomainName = reader.ReadChar();
     }
 }
Example #2
0
 void IEntity.LoadFields(IRepositoryReader reader, int version)
 {
     name = reader.ReadString();
     if (version >= 3) title = reader.ReadString();
     if (version >= 4) securityDomainName = reader.ReadChar();
     size.Width = reader.ReadInt32();
     size.Height = reader.ReadInt32();
     backColor = Color.FromArgb(reader.ReadInt32());
     targetColor = Color.FromArgb(reader.ReadInt32());
     string imgName = reader.ReadString();
     Image img = reader.ReadImage();
     if (img != null) backImage = new NamedImage(img, imgName);
     imageLayout = (ImageLayoutMode)reader.ReadByte();
     imageGamma = reader.ReadFloat();
     imageTransparency = reader.ReadByte();
     imageGrayScale = reader.ReadBool();
     imageTransparentColor = Color.FromArgb(reader.ReadInt32());
 }