1 write to CloseReason
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownClosingEventArgs.cs (1)
12
CloseReason
= reason;
9 references to CloseReason
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1653
e.Cancel = e.
CloseReason
!= ToolStripDropDownCloseReason.CloseCalled && !AutoClose;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionUI.cs (2)
587
if (e.
CloseReason
== ToolStripDropDownCloseReason.ItemClicked)
592
if (e.
CloseReason
== ToolStripDropDownCloseReason.Keyboard)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (3)
78
if (e.
CloseReason
== ToolStripDropDownCloseReason.AppFocusChange && _cancelClose)
87
else if (e.
CloseReason
is ToolStripDropDownCloseReason.AppFocusChange or ToolStripDropDownCloseReason.AppClicked)
90
if (Handle == hwndActivating && e.
CloseReason
== ToolStripDropDownCloseReason.AppClicked)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1988
e.Cancel = (e.
CloseReason
== ToolStripDropDownCloseReason.ItemClicked);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2003
e.Cancel = (e.
CloseReason
== ToolStripDropDownCloseReason.ItemClicked);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripDropDownClosingEventArgsTests.cs (1)
15
Assert.Equal(closeReason, e.
CloseReason
);