18 references to new
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
16006
HandledMouseEventArgs hme =
new
(
16026
HandledMouseEventArgs hme =
new
(
16056
HandledMouseEventArgs hme =
new
(
16076
HandledMouseEventArgs hme =
new
(
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
9
:
base
(e?.Button ?? MouseButtons.None, e?.Clicks ?? 0, e?.X ?? 0, e?.Y ?? 0, e?.Delta ?? 0, e?.Handled ?? false)
System\Windows\Forms\Input\HandledMouseEventArgs.cs (2)
9
:
this
(button, clicks, x, y, delta, false)
14
:
this
(button, clicks, location.X, location.Y, delta, false)
System.Windows.Forms.Tests (11)
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (4)
11
yield return new object[] { -1, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true) };
12
yield return new object[] { 0, new
HandledMouseEventArgs
((MouseButtons)1, 0, 0, 0, 0, true) };
13
yield return new object[] { 1, new
HandledMouseEventArgs
((MouseButtons)3, -1, -1, -1, -2, false) };
34
Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewColumnDividerDoubleClickEventArgs(-2, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (4)
11
yield return new object[] { -1, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true) };
12
yield return new object[] { 0, new
HandledMouseEventArgs
((MouseButtons)1, 0, 0, 0, 0, true) };
13
yield return new object[] { 1, new
HandledMouseEventArgs
((MouseButtons)3, -1, -1, -1, -2, false) };
34
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewRowDividerDoubleClickEventArgs(-2, new
HandledMouseEventArgs
(MouseButtons.Left, 1, 2, 3, 4, true)));
System\Windows\Forms\HandledMouseEventArgsTests.cs (1)
33
HandledMouseEventArgs e =
new
(button, clicks, x, y, delta, handled);
System\Windows\Forms\UpDownBaseTests.cs (1)
2200
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4, handled);
TrackBarTests.cs (1)
2580
HandledMouseEventArgs eventArgs =
new
(MouseButtons.Left, 1, 2, 3, 4, handled);