31 references to ToolStripDropDownCloseReason
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (18)
46
private
ToolStripDropDownCloseReason
closeReason =
ToolStripDropDownCloseReason
.AppFocusChange;
1166
SetCloseReason(
ToolStripDropDownCloseReason
.CloseCalled);
1175
closeReason =
ToolStripDropDownCloseReason
.AppFocusChange;
1177
internal void SetCloseReason(
ToolStripDropDownCloseReason
reason) {
1182
public void Close(
ToolStripDropDownCloseReason
reason) {
1370
Close(
ToolStripDropDownCloseReason
.ItemClicked);
1552
SetCloseReason(
ToolStripDropDownCloseReason
.Keyboard);
1584
SetCloseReason(
ToolStripDropDownCloseReason
.Keyboard);
1596
SetCloseReason(
ToolStripDropDownCloseReason
.Keyboard);
1861
ToolStripDropDownCloseReason
reason = closeReason;
1869
if (e.CloseReason !=
ToolStripDropDownCloseReason
.CloseCalled) {
1901
if ((reason ==
ToolStripDropDownCloseReason
.AppClicked) ||
1902
(reason ==
ToolStripDropDownCloseReason
.ItemClicked) ||
1903
(reason ==
ToolStripDropDownCloseReason
.CloseCalled && topLevelToolStrip == parentToolStrip) ||
1904
(reason ==
ToolStripDropDownCloseReason
.AppFocusChange && topLevelToolStrip == parentToolStrip)) {
1912
if (reason ==
ToolStripDropDownCloseReason
.ItemClicked) {
1968
Debug.Assert(reason !=
ToolStripDropDownCloseReason
.ItemClicked,
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
129
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown,
ToolStripDropDownCloseReason
.AppClicked);
148
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown,
ToolStripDropDownCloseReason
.AppClicked);
winforms\Managed\System\WinForms\ToolStripDropDownClosedEventArgs.cs (3)
14
ToolStripDropDownCloseReason
closeReason;
16
public ToolStripDropDownClosedEventArgs(
ToolStripDropDownCloseReason
reason) {
20
public
ToolStripDropDownCloseReason
CloseReason {
winforms\Managed\System\WinForms\ToolStripDropDownClosingEventArgs.cs (3)
18
ToolStripDropDownCloseReason
closeReason;
20
public ToolStripDropDownClosingEventArgs(
ToolStripDropDownCloseReason
reason) {
25
public
ToolStripDropDownCloseReason
CloseReason {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
609
parent.SetCloseReason(
ToolStripDropDownCloseReason
.Keyboard);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1004
internal static void CloseActiveDropDown(ToolStripDropDown activeToolStripDropDown,
ToolStripDropDownCloseReason
reason) {
1061
CloseActiveDropDown(activeToolStripDropDown,
ToolStripDropDownCloseReason
.AppClicked);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
989
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown,
ToolStripDropDownCloseReason
.AppClicked);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
550
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown,
ToolStripDropDownCloseReason
.AppClicked);