/// <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 HiLowBarItem(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");

            _bar = (HiLowBar)info.GetValue("bar", typeof(HiLowBar));
        }
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBar"/> object from which to copy</param>
 public HiLowBar(HiLowBar rhs) : base(rhs)
 {
     _size       = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }
 /// <summary>
 /// Create a new <see cref="HiLowBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 /// <param name="points">A <see cref="IPointList"/> of double precision value trio's that define
 /// the X, Y, and lower dependent values for this curve</param>
 /// <param name="color">A <see cref="Color"/> value that will be applied to
 /// the <see cref="ZedGraph.Bar.Fill"/> and <see cref="ZedGraph.Bar.Border"/> properties.
 /// </param>
 public HiLowBarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _bar = new HiLowBar(color);
 }
Exemplo n.º 4
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBar"/> object from which to copy</param>
 public HiLowBar( HiLowBar rhs )
     : base(rhs)
 {
     _size = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem(HiLowBarItem rhs) : base(rhs)
 {
     _bar = rhs._bar.Clone();             // new HiLowBar( rhs.Bar );
 }
Exemplo n.º 6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBar"/> object from which to copy</param>
 public HiLowBar(HiLowBar rhs) : base(rhs)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBar"/> object from which to copy</param>
 public HiLowBar( HiLowBar rhs )
     : base(rhs)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Create a new <see cref="HiLowBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 /// <param name="points">A <see cref="PointPairList"/> of double precision value trio's that define
 /// the X, Y, and lower dependent values for this curve</param>
 /// <param name="color">A <see cref="Color"/> value that will be applied to
 /// the <see cref="ZedGraph.Bar.Fill"/> and <see cref="ZedGraph.Bar.Border"/> properties.
 /// </param>
 public HiLowBarItem( string label, PointPairList points, Color color )
     : base(label, points)
 {
     bar = new HiLowBar( color );
 }
        /// <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 HiLowBarItem( 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" );

            _bar = (HiLowBar) info.GetValue( "bar", typeof(HiLowBar) );
        }
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem( HiLowBarItem rhs )
     : base(rhs)
 {
     _bar = rhs._bar.Clone(); // new HiLowBar( rhs.Bar );
 }