Exemplo n.º 1
0
        internal void SetChartBox(ChartBox owner)
        {
            if (_owner != null && _owner != owner)
            {
                // _owner.remo
            }

            this._owner = owner;
        }
Exemplo n.º 2
0
 private bool CheckChartBoxLayout(ChartBox box)
 {
     for (int i = 0; i < _boxesLayout.Count; i++)
     {
         if (box.GUID == _boxesLayout[i])
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
        private void ChangeLocation(MouseEventArgs e)
        {
            int oldTop = this.Top;

            this.Top = e.Y + this.Top + _dy;
            int dy = this.Top - oldTop;

            ChartBox cbox = this.GetPrevChartBox();

            if (cbox == null)
            {
                return;
            }

            int cboxOldHeight = cbox.Height;

            cbox.Height += dy;

            dy        = cboxOldHeight - cbox.Height - dy;
            this.Top -= dy;

            this.Owner.ChartBoxesLayout();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Изменения размера текущего контрола с контролом ниже.
        /// </summary>
        /// <param name="e"></param>
        private void ChangeSize(MouseEventArgs e)
        {
            int oldHeigh = this.Height;

            this.Height = e.Y + _dy;

            int dy = this.Height - oldHeigh;

            ChartBox cbox = this.GetNextChartBox();

            if (cbox == null)
            {
                return;
            }

            int cboxOldHeight = cbox.Height;

            cbox.Height -= dy;

            dy           = cboxOldHeight - cbox.Height - dy;
            this.Height += dy;

            this.Owner.ChartBoxesLayout();
        }
Exemplo n.º 5
0
 internal ChartBoxArea(ChartBox owner)
 {
     _owner = owner;
 }
Exemplo n.º 6
0
 internal ChartHorizontalScale(ChartBox owner) : base(owner)
 {
 }
Exemplo n.º 7
0
 internal ChartAreaManager(ChartBox owner) : base(owner)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChartBoxEventArgs"/> class.
 /// </summary>
 /// <param name="chartBox">The <see cref="ChartBox"/> the event is occurring for.</param>
 /// <param name="chartBoxIndex">The zero-based index of chartBox in the <see cref="ChartBox"/> collection.</param>
 /// <param name="action">One of the <see cref="ChartControlAction"/> values.</param>
 public ChartBoxEventArgs(ChartBox chartBox, int chartBoxIndex, ChartControlAction action) : base()
 {
     _chartBox      = chartBox;
     _chartBoxIndex = chartBoxIndex;
     _action        = action;
 }
 internal ChartVerticalScale(ChartBox owner)
     : base(owner)
 {
 }
Exemplo n.º 10
0
 internal FigureCollection(ChartBox owner)
 {
     Owner = owner;
 }