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)
3047
if (dgvdee.
ThrowException
)
3112
if (dgvdee2.
ThrowException
)
3730
if (dgvdee.
ThrowException
)
3990
if (dgvdee.
ThrowException
)
4004
if (dgvdee.
ThrowException
)
6181
if (dgvdee.
ThrowException
)
6195
if (dgvdee.
ThrowException
)
9714
return dgvdee is null || (dgvdee.
ThrowException
? throw dgvdee.Exception : !dgvdee.Cancel);
9749
return dgvdee.
ThrowException
? throw dgvdee.Exception : !dgvdee.Cancel;
19999
if (dgvdee.
ThrowException
)
21430
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
);