/// <summary> /// The StockPt copy constructor. /// </summary> /// <param name="rhs">The basis for the copy.</param> public StockPt(StockPt rhs) : base(rhs) { Low = rhs.Low; Open = rhs.Open; Close = rhs.Close; Vol = rhs.Vol; ColorValue = rhs.ColorValue; if (rhs.Tag is ICloneable) { Tag = ((ICloneable)rhs.Tag).Clone(); } else { Tag = rhs.Tag; } }
/// <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; Open = pt.Open; Close = pt.Close; Vol = pt.Vol; ColorValue = rhs.ColorValue; } else { Open = Missing; Close = Missing; Vol = Missing; ColorValue = Missing; } }
/// <summary> /// The StockPt copy constructor. /// </summary> /// <param name="rhs">The basis for the copy.</param> public StockPt( StockPt rhs ) : base( rhs ) { Low = rhs.Low; Open = rhs.Open; Close = rhs.Close; Vol = rhs.Vol; ColorValue = rhs.ColorValue; if ( rhs.Tag is ICloneable ) Tag = ( (ICloneable)rhs.Tag ).Clone(); else Tag = rhs.Tag; }