Exemple #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");
 }
        public ShapeWithIndicator(Shape Shape)
        {
            this.Name = Shape.Name;

            var IS = new IndicatorShape(Shape) { Name = Shape.Name + " Indicator" };
            this.Shapes.Add(Shape);
            this.Shapes.Add(IS);

            var PS = Shape as PenShape;
            if (PS != null)
            {
                IS.Color = PS.Color;
            }
        }
Exemple #3
0
 public IndicatorShape(Shape Shape)
 {
     this.Shape = Shape;
     this.IndicatorsSize = 5;
     this.IndicatorsShape = ShapeOfIndicator.Square;
 }