private void EndIgnoreScrollbarChangeEvents() { if (this._ignoreScrollbarChange > 0) { MetroDataGridHelper metroDataGridHelper = this; metroDataGridHelper._ignoreScrollbarChange = metroDataGridHelper._ignoreScrollbarChange - 1; } }
public MetroGrid() { InitializeComponent(); StyleGrid(); this.Controls.Add(_vertical); this.Controls.Add(_horizontal); this.Controls.SetChildIndex(_vertical, 0); this.Controls.SetChildIndex(_horizontal, 1); _horizontal.Visible = false; _vertical.Visible = false; scrollhelper = new MetroDataGridHelper(_vertical, this); scrollhelperH = new MetroDataGridHelper(_horizontal, this, false); }
public MetroDataGridHelper(MetroScrollBar scrollbar, DataGridView grid) { MetroDataGridHelper metroDataGridHelper = new MetroDataGridHelper(scrollbar, grid, true); }
private void BeginIgnoreScrollbarChangeEvents() { MetroDataGridHelper metroDataGridHelper = this; metroDataGridHelper._ignoreScrollbarChange = metroDataGridHelper._ignoreScrollbarChange + 1; }