public void Read(BinaryReader annotation) { if (annotation != null) { _badgeIdGen = new BadgeShapeIdGenerator(annotation.ReadInt32()); } else { _badgeIdGen = new BadgeShapeIdGenerator(); } if (annotation == null) { return; } readInk(annotation); var numShapes = annotation.ReadInt32(); for (var i = 0; i < numShapes; i++) { var sh = new ServerBaseVdShape(annotation); _shapeIdToShape.Add(sh.Id(), sh); } }
public void Read(BinaryReader annotation) { if (annotation != null) _badgeIdGen = new BadgeShapeIdGenerator(annotation.ReadInt32()); else _badgeIdGen = new BadgeShapeIdGenerator(); if (annotation == null) return; readInk(annotation); var numShapes = annotation.ReadInt32(); for (var i = 0; i < numShapes; i++) { var sh = new ServerBaseVdShape(annotation); _shapeIdToShape.Add(sh.Id(), sh); } }