14 references to _customers
WinFormsControlsTest (14)
DataGridViewInVirtualModeTest.cs (14)
46_customers.Add(new TestCustomer("Ann", 23, true, "Female")); 47_customers.Add(new TestCustomer("John", 45, true, "Male")); 48_customers.Add(new TestCustomer("Sarah", 67, false, "Female")); 51dataGridView1.RowCount = _customers.Count + 1; // Add 1 as a new edit row 63TestCustomer customer = e.RowIndex == _rowInEdit ? _customerInEdit : _customers[e.RowIndex]; 86if (e.RowIndex < _customers.Count) 89TestCustomer customer = _customers[e.RowIndex]; 130if (e.RowIndex >= _customers.Count && e.RowIndex != dataGridView1.Rows.Count - 1) 133_customers.Add(_customerInEdit); 137else if (_customerInEdit is not null && e.RowIndex < _customers.Count) 140_customers[e.RowIndex] = _customerInEdit; 163if (_rowInEdit == dataGridView1.Rows.Count - 2 && _rowInEdit == _customers.Count) 180if (e.Row.Index < _customers.Count) 184_customers.RemoveAt(e.Row.Index);