Exemplo n.º 1
0
 protected IndicatorShape(SerializationInfo Info, StreamingContext Context)
     : base(Info, Context)
 {
     Utils.Deserializing();
     this.Shape = (Shape)Info.GetValueWithType("Shape");
     this._IndicatorsShape = (ShapeOfIndicator)Info.GetInt32("IndicatorsShape");
     this._IndicatorsSize = Info.GetInt32("IndicatorsSize");
 }
Exemplo n.º 2
0
        protected ShapeCollection(SerializationInfo Info, StreamingContext Context)
            : base(Info, Context)
        {
            Utils.Deserializing();
            this._IsSelected = Info.GetBoolean("IsSelected");
            this._IsVisible = Info.GetBoolean("IsVisible");

            var N = Info.GetInt32("Shapes.Count");
            for (int i = 0; i < N; i++)
            {
                this._Shapes.Add((ShapeBase)Info.GetValueWithType("Shapes[" + i + "]"));
            }
        }
Exemplo n.º 3
0
 protected ShapeBag(SerializationInfo Info, StreamingContext Context)
     : base(Info, Context)
 {
     Utils.Deserializing();
     this._Shapes = (IEnumerable<Shape>)Info.GetValueWithType("Shapes");
 }
Exemplo n.º 4
0
 protected ShapeBase(SerializationInfo Info, StreamingContext Context)
 {
     Utils.Deserializing();
     this._Name = Info.GetString("Name");
     this._Parent = (ShapeBase)Info.GetValueWithType("Parent");
 }