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"));
51
dataGridView1.RowCount =
_customers
.Count + 1; // Add 1 as a new edit row
63
TestCustomer customer = e.RowIndex == _rowInEdit ? _customerInEdit :
_customers
[e.RowIndex];
86
if (e.RowIndex <
_customers
.Count)
89
TestCustomer customer =
_customers
[e.RowIndex];
130
if (e.RowIndex >=
_customers
.Count && e.RowIndex != dataGridView1.Rows.Count - 1)
133
_customers
.Add(_customerInEdit);
137
else if (_customerInEdit is not null && e.RowIndex <
_customers
.Count)
140
_customers
[e.RowIndex] = _customerInEdit;
163
if (_rowInEdit == dataGridView1.Rows.Count - 2 && _rowInEdit ==
_customers
.Count)
180
if (e.Row.Index <
_customers
.Count)
184
_customers
.RemoveAt(e.Row.Index);