/// <summary> /// Create a new <see cref="JapaneseCandleStickItem"/> 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> public JapaneseCandleStickItem( string label, IPointList points ) : base(label, points) { _stick = new JapaneseCandleStick(); }
/// <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 JapaneseCandleStickItem( 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 = (JapaneseCandleStick) info.GetValue( "stick", typeof( JapaneseCandleStick ) ); }
/// <summary> /// Create a new <see cref="OHLCBarItem"/>, specifying only the legend label. /// </summary> /// <param name="label">The label that will appear in the legend.</param> public JapaneseCandleStickItem( string label ) : base(label) { _stick = new JapaneseCandleStick(); }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The <see cref="JapaneseCandleStickItem"/> object from which to copy</param> public JapaneseCandleStickItem( JapaneseCandleStickItem rhs ) : base(rhs) { _stick = rhs._stick.Clone(); }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The <see cref="JapaneseCandleStickItem"/> object from which to copy</param> public JapaneseCandleStickItem(JapaneseCandleStickItem rhs) : base(rhs) { _stick = rhs._stick.Clone(); }
/// <summary> /// Create a new <see cref="JapaneseCandleStickItem"/> 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> public JapaneseCandleStickItem(string label, IPointList points) : base(label, points) { _stick = new JapaneseCandleStick(); }
/// <summary> /// Create a new <see cref="OHLCBarItem"/>, specifying only the legend label. /// </summary> /// <param name="label">The label that will appear in the legend.</param> public JapaneseCandleStickItem(string label) : base(label) { _stick = new JapaneseCandleStick(); }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The <see cref="JapaneseCandleStick"/> object from which to copy</param> public JapaneseCandleStick( JapaneseCandleStick rhs ) : base(rhs) { _risingFill = rhs._risingFill.Clone(); _fallingFill = rhs._fallingFill.Clone(); _risingBorder = rhs._risingBorder.Clone(); _fallingBorder = rhs._fallingBorder.Clone(); _fallingColor = rhs._fallingColor; }