8 writes to _customerInEdit
WinFormsControlsTest (8)
DataGridViewInVirtualModeTest.cs (8)
90
_customerInEdit
??= new TestCustomer(customer.Name, customer.Age, customer.HasAJob, customer.Gender);
122
_customerInEdit
= new TestCustomer();
134
_customerInEdit
= null;
141
_customerInEdit
= null;
146
_customerInEdit
= null;
167
_customerInEdit
= new TestCustomer();
173
_customerInEdit
= null;
192
_customerInEdit
= null;
8 references to _customerInEdit
WinFormsControlsTest (8)
DataGridViewInVirtualModeTest.cs (8)
63
TestCustomer customer = e.RowIndex == _rowInEdit ?
_customerInEdit
: _customers[e.RowIndex];
100
_customerInEdit
.Name = newValue.ToString();
105
_customerInEdit
.Age = result;
110
_customerInEdit
.HasAJob = (bool)newValue;
113
_customerInEdit
.Gender = newValue.ToString();
133
_customers.Add(
_customerInEdit
);
137
else if (
_customerInEdit
is not null && e.RowIndex < _customers.Count)
140
_customers[e.RowIndex] =
_customerInEdit
;