/// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="CandleStick"/> object from which to copy</param>
 public CandleStick(CandleStick rhs)
 {
     _color = rhs._color;
     _isOpenCloseVisible = rhs._isOpenCloseVisible;
     _penWidth           = rhs._penWidth;
     _size       = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        protected CandleStickItem(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema2");

            _stick = (CandleStick)info.GetValue("stick", typeof(CandleStick));
        }
Esempio n. 3
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="CandleStickItem"/> object from which to copy</param>
 public CandleStickItem(CandleStickItem rhs)
     : base(rhs)
 {
     _stick = rhs._stick.Clone();
 }
Esempio n. 4
0
 /// <summary>
 /// Create a new <see cref="CandleStickItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The _label that will appear in the legend.</param>
 /// <param name="points">An <see cref="IPointList"/> of double precision values that define
 /// the Date, Close, Open, High, and Low values for the curve.  Note that this
 /// <see cref="IPointList" /> should contain <see cref="StockPt" /> items rather
 /// than <see cref="PointPair" /> items.
 /// </param>
 /// <param name="color">
 /// The <see cref="System.Drawing.Color" /> to use for drawing the candlesticks.</param>
 public CandleStickItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _stick = new CandleStick(color);
 }
Esempio n. 5
0
 /// <summary>
 /// Create a new <see cref="CandleStickItem"/>, specifying only the legend label.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 public CandleStickItem(string label)
     : base(label)
 {
     _stick = new CandleStick();
 }
 /// <summary>
 /// Create a new <see cref="CandleStickItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The _label that will appear in the legend.</param>
 /// <param name="points">An <see cref="IPointList"/> of double precision values that define
 /// the Date, Close, Open, High, and Low values for the curve.  Note that this
 /// <see cref="IPointList" /> should contain <see cref="StockPt" /> items rather
 /// than <see cref="PointPair" /> items.
 /// </param>
 /// <param name="color">
 /// The <see cref="System.Drawing.Color" /> to use for drawing the candlesticks.</param>
 public CandleStickItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _stick = new CandleStick(color);
 }
 /// <summary>
 /// Create a new <see cref="CandleStickItem"/>, specifying only the legend label.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 public CandleStickItem(string label)
     : base(label)
 {
     _stick = new CandleStick();
 }
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        protected CandleStickItem(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema2");

            _stick = (CandleStick) info.GetValue("stick", typeof (CandleStick));
        }
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="CandleStickItem"/> object from which to copy</param>
 public CandleStickItem(CandleStickItem rhs)
     : base(rhs)
 {
     _stick = rhs._stick.Clone();
 }
Esempio n. 10
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="CandleStick"/> object from which to copy</param>
 public CandleStick(CandleStick rhs)
 {
     _color = rhs._color;
     _isOpenCloseVisible = rhs._isOpenCloseVisible;
     _penWidth = rhs._penWidth;
     _size = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }