예제 #1
0
파일: StockPt.cs 프로젝트: 1907931256/jx
        /// <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;
            }
        }
예제 #2
0
파일: StockPt.cs 프로젝트: 1907931256/jx
 /// <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;
     }
 }
예제 #3
0
파일: StockPt.cs 프로젝트: CareyGit/jx
		/// <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;
		}