コード例 #1
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;
 }
コード例 #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));
        }
コード例 #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();
 }
コード例 #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);
 }
コード例 #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();
 }
コード例 #6
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);
 }
コード例 #7
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();
 }
コード例 #8
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));
        }
コード例 #9
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();
 }
コード例 #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;
 }