Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OHLCBar"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="OHLCBar"/> object from which to copy
 /// </param>
 public OHLCBar(OHLCBar rhs)
     : base(rhs)
 {
     this._isOpenCloseVisible = rhs._isOpenCloseVisible;
     this._size = rhs._size;
     this._isAutoSize = rhs._isAutoSize;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OHLCBarItem"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="OHLCBarItem"/> object from which to copy
 /// </param>
 public OHLCBarItem(OHLCBarItem rhs)
     : base(rhs)
 {
     this._bar = rhs._bar.Clone();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OHLCBarItem"/> class. 
 /// 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 OHLCBarItem(string label)
     : base(label)
 {
     this._bar = new OHLCBar();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OHLCBarItem"/> class. 
 /// Create a new <see cref="OHLCBarItem"/> 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 OHLCBarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     this._bar = new OHLCBar(color);
 }
Esempio n. 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OHLCBarItem"/> class. 
        /// 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 OHLCBarItem(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");

            this._bar = (OHLCBar)info.GetValue("stick", typeof(OHLCBar));
        }