2 writes to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
806_initialDataGridViewColumnsCount = _liveDataGridView.Columns.Count; 810_initialDataGridViewColumnsCount = -1;
7 references to _initialDataGridViewColumnsCount
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (7)
519Debug.Assert(_initialDataGridViewColumnsCount != -1, "did you forget to set the initialDataGridViewColumnsCount when you started the dialog?"); 527DataGridViewColumn[] cols = new DataGridViewColumn[_liveDataGridView.Columns.Count - _initialDataGridViewColumnsCount]; 528for (int i = _initialDataGridViewColumnsCount; i < _liveDataGridView.Columns.Count; i++) 530cols[i - _initialDataGridViewColumnsCount] = _liveDataGridView.Columns[i]; 533for (int i = _initialDataGridViewColumnsCount; i < _liveDataGridView.Columns.Count;) 535_liveDataGridView.Columns.RemoveAt(_initialDataGridViewColumnsCount); 562Debug.Assert(_initialDataGridViewColumnsCount == -1, "did you forget to reset the _initialDataGridViewColumnsCount when you started the dialog?");