3 writes to ThrowException
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewDataErrorEventArgsTests.cs (3)
48
DataGridViewDataErrorEventArgs e = new(new InvalidOperationException(), 1, 2, DataGridViewDataErrorContexts.Formatting) {
ThrowException
= value };
55
DataGridViewDataErrorEventArgs e = new(null, 1, 2, DataGridViewDataErrorContexts.Formatting) {
ThrowException
= false };
63
Assert.Throws<ArgumentException>(() => e.
ThrowException
= true);
23 references to ThrowException
System.Windows.Forms (20)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (4)
1130
if (dgvdee.
ThrowException
)
1156
if (dgvdee.
ThrowException
)
1188
if (dgvdee.
ThrowException
)
1441
if (dgvdee.
ThrowException
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (11)
3050
if (dgvdee.
ThrowException
)
3115
if (dgvdee2.
ThrowException
)
3733
if (dgvdee.
ThrowException
)
3993
if (dgvdee.
ThrowException
)
4007
if (dgvdee.
ThrowException
)
6184
if (dgvdee.
ThrowException
)
6198
if (dgvdee.
ThrowException
)
9717
return dgvdee is null || (dgvdee.
ThrowException
? throw dgvdee.Exception : !dgvdee.Cancel);
9752
return dgvdee.
ThrowException
? throw dgvdee.Exception : !dgvdee.Cancel;
20002
if (dgvdee.
ThrowException
)
21433
if (dgvdee.
ThrowException
)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1635
if (dgvdee.
ThrowException
)
1672
if (dgvdee.
ThrowException
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
936
if (dgvdee.
ThrowException
)
973
if (dgvdee.
ThrowException
)
1008
if (dgvdee.
ThrowException
)
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewDataErrorEventArgsTests.cs (3)
28
Assert.False(e.
ThrowException
);
49
Assert.Equal(value, e.
ThrowException
);
56
Assert.False(e.
ThrowException
);