Esempio n. 1
0
        /// <summary>
        /// The StockPt copy constructor.
        /// </summary>
        /// <param name="rhs">The basis for the copy.</param>
        public StockPt(StockPt rhs)
            : base(rhs)
        {
            this.Low        = rhs.Low;
            this.Open       = rhs.Open;
            this.Close      = rhs.Close;
            this.Vol        = rhs.Vol;
            this.ColorValue = rhs.ColorValue;

            if (rhs.Tag is ICloneable)
            {
                this.Tag = ((ICloneable)rhs.Tag).Clone();
            }
            else
            {
                this.Tag = rhs.Tag;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// The StockPt copy constructor.
 /// </summary>
 /// <param name="rhs">The basis for the copy.</param>
 public StockPt(PointPair rhs)
     : base(rhs)
 {
     if (rhs is StockPt)
     {
         StockPt pt = rhs as StockPt;
         this.Open       = pt.Open;
         this.Close      = pt.Close;
         this.Vol        = pt.Vol;
         this.ColorValue = rhs.ColorValue;
     }
     else
     {
         this.Open       = PointPair.Missing;
         this.Close      = PointPair.Missing;
         this.Vol        = PointPair.Missing;
         this.ColorValue = PointPair.Missing;
     }
 }