internal void SetChartBox(ChartBox owner) { if (_owner != null && _owner != owner) { // _owner.remo } this._owner = owner; }
private bool CheckChartBoxLayout(ChartBox box) { for (int i = 0; i < _boxesLayout.Count; i++) { if (box.GUID == _boxesLayout[i]) { return(true); } } return(false); }
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(); }
/// <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(); }
internal ChartBoxArea(ChartBox owner) { _owner = owner; }
internal ChartHorizontalScale(ChartBox owner) : base(owner) { }
internal ChartAreaManager(ChartBox owner) : base(owner) { }
/// <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) { }
internal FigureCollection(ChartBox owner) { Owner = owner; }