/// <ToBeCompleted></ToBeCompleted> public void SaveFields(IRepositoryWriter writer, int version) { if (writer == null) { throw new ArgumentNullException("writer"); } writer.WriteString(_name); // See comment in GetPropertyDefinitions() writer.WriteString(_title); writer.WriteString(_description); }
/// <ToBeCompleted></ToBeCompleted> public void SaveFields(IRepositoryWriter writer, int version) { if (writer == null) { throw new ArgumentNullException("writer"); } writer.WriteString(name); if (version >= 3) { writer.WriteString(title); } writer.WriteString(description); }
void IEntity.SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version) { Project.AssertSupportedVersion(true, version); writer.BeginWriteInnerObjects(); foreach (LibraryData ld in libraries) { writer.BeginWriteInnerObject(); writer.WriteString(ld.Name); writer.WriteString(ld.AssemblyName); writer.WriteInt32(ld.RepositoryVersion); writer.EndWriteInnerObject(); } writer.EndWriteInnerObjects(); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteInt32(integerValue); writer.WriteFloat(floatValue); writer.WriteString(stringValue); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); // ILabel members writer.WriteStyle(privateCharacterStyle); writer.WriteStyle(privateParagraphStyle); writer.WriteString(Text); }
/// <ToBeCompleted></ToBeCompleted> protected virtual void SaveFieldsCore(IRepositoryWriter writer, int version) { writer.WriteString(name); if (version >= 4) { writer.WriteChar(SecurityDomainName); } }
void IEntity.SaveFields(IRepositoryWriter writer, int version) { writer.WriteDate(DateTime.Now); if (version >= 5) { writer.WriteString(description); } }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { // Do the actual writing writer.WriteTemplate(template); writer.WriteInt32(X); writer.WriteInt32(Y); writer.WriteInt32(ZOrder); writer.WriteInt32((int)Layers); writer.WriteInt32(angle); if (version >= 5) { writer.WriteString(data); } }
/// <ToBeCompleted></ToBeCompleted> protected virtual void SaveFieldsCore(IRepositoryWriter writer, int version) { writer.WriteString(name); }
/// <override></override> public override void SaveFields(IRepositoryWriter writer, int version) { base.SaveFields(writer, version); writer.WriteInt32((int)mappingType); writer.WriteString(format); }
/// <ToBeCompleted></ToBeCompleted> public void SaveFields(IRepositoryWriter writer, int version) { if (writer == null) throw new ArgumentNullException("writer"); writer.WriteString(name); if (version > 2) writer.WriteString(title); writer.WriteString(description); }
void IEntity.SaveInnerObjects(string propertyName, IRepositoryWriter writer, int version) { Debug.Assert(propertyName == "Layers"); writer.BeginWriteInnerObjects(); foreach (Layer l in layers) { writer.BeginWriteInnerObject(); writer.WriteInt32((int)l.Id); writer.WriteString(l.Name); writer.WriteString(l.Title); writer.WriteInt32(l.LowerZoomThreshold); writer.WriteInt32(l.UpperZoomThreshold); writer.EndWriteInnerObject(); } writer.EndWriteInnerObjects(); }
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()); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteByte((byte)imageLayout); writer.WriteByte(imageTransparency); writer.WriteFloat(imageGamma); writer.WriteByte(compressionQuality); writer.WriteBool(imageGrayScale); if (NamedImage.IsNullOrEmpty(image)) { writer.WriteString(string.Empty); writer.WriteImage(null); } else { writer.WriteString(image.Name); object imgTag = image.Image.Tag; image.Image.Tag = image.Name; writer.WriteImage(image.Image); image.Image.Tag = imgTag; } writer.WriteInt32(transparentColor.ToArgb()); }
/// <override></override> protected override void SaveInnerObjectsCore(string propertyName, IRepositoryWriter writer, int version) { if (propertyName == attrNameColumns) { writer.BeginWriteInnerObjects(); int cnt = CaptionCount; for (int i = 1; i < cnt; ++i) { // Skip first caption (title) writer.BeginWriteInnerObject(); writer.WriteInt32(i - 1); writer.WriteString(GetCaptionText(i)); writer.EndWriteInnerObject(); } writer.EndWriteInnerObjects(); } else base.SaveInnerObjectsCore(propertyName, writer, version); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteStyle(fillStyle); writer.WriteStyle(charStyle); writer.WriteStyle(ParagraphStyle); writer.WriteString(Text); writer.WriteInt32(w); writer.WriteInt32(h); }