3 implementations of FindCommand
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MenuCommandService.cs (1)
312
public MenuCommand?
FindCommand
(CommandID commandID)
System\Windows\Forms\Design\Behavior\BehaviorService.MenuCommandHandler.cs (1)
29
MenuCommand? IMenuCommandService.
FindCommand
(CommandID commandID)
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
200
public MenuCommand
FindCommand
(CommandID commandID) => throw new NotImplementedException();
50 references to FindCommand
DemoConsole (1)
DesignSurfaceExtended.cs (1)
364
MenuCommand menuCommand = ims?.
FindCommand
(commandId);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5225
MenuCommand? reset = menuCommandService.
FindCommand
(PropertyGridCommands.Reset);
System.Windows.Forms.Design (44)
System\ComponentModel\Design\MenuCommandService.cs (3)
82
if (((IMenuCommandService)this).
FindCommand
(commandId) is not null)
410
MenuCommand? cmd = ((IMenuCommandService)this).
FindCommand
(commandID);
429
MenuCommand? cmd = ((IMenuCommandService)this).
FindCommand
(commandId);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
547
MenuCommand? menuCommand = menuService.
FindCommand
(commandID);
565
return menuService.
FindCommand
(commandID);
System\Windows\Forms\Design\CommandSet.cs (1)
2162
MenuCommand? btf = MenuService?.
FindCommand
(StandardCommands.BringToFront);
System\Windows\Forms\Design\ComponentTray.cs (1)
1650
_tabOrderCommand = mcs.
FindCommand
(StandardCommands.TabOrder);
System\Windows\Forms\Design\DocumentDesigner.cs (2)
185
_tabOrderCommand = menuCommandService.
FindCommand
(StandardCommands.TabOrder);
1327
MenuCommand cmd = mcs.
FindCommand
(StandardCommands.TabOrder);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1468
MenuCommand tabCommand = ms.
FindCommand
(StandardCommands.TabOrder);
1667
MenuCommand tabCommand = ms.
FindCommand
(StandardCommands.TabOrder);
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
35
_menuCommand = MenuService?.
FindCommand
(menuID);
System\Windows\Forms\Design\StatusCommandUI.cs (1)
33
private MenuCommand? StatusRectCommand => _statusRectCommand ??= MenuService?.
FindCommand
(MenuCommands.SetStatusRectangle);
System\Windows\Forms\Design\TabOrder.cs (1)
502
MenuCommand? mc = mcs.
FindCommand
(StandardCommands.TabOrder);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (27)
285
if (newCommand is not null && mcs.
FindCommand
(newCommand.CommandID) is null)
547
_oldCommandPaste = mcs.
FindCommand
(StandardCommands.Paste);
554
if (mcs.
FindCommand
(_newCommandPaste.CommandID) is null)
1464
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySelectNext));
1465
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySelectPrevious));
1466
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyDefaultAction));
1468
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyMoveUp));
1469
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyMoveDown));
1470
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyMoveLeft));
1471
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyMoveRight));
1473
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyNudgeUp));
1474
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyNudgeDown));
1475
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyNudgeLeft));
1476
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyNudgeRight));
1478
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySizeWidthIncrease));
1479
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySizeHeightIncrease));
1480
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySizeWidthDecrease));
1481
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeySizeHeightDecrease));
1483
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyCancel));
1484
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyReverseCancel));
1485
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Copy));
1486
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.SelectAll));
1487
_oldCommands.Add(mcs.
FindCommand
(MenuCommands.KeyInvokeSmartTag));
1489
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Cut));
1490
_oldCommands.Add(mcs.
FindCommand
(StandardCommands.Delete));
1556
if (oldCommand is not null && mcs.
FindCommand
(oldCommand.CommandID) is null)
1569
if (_oldCommandPaste is not null && mcs.
FindCommand
(_oldCommandPaste.CommandID) is null)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
441
_oldShortCutCommand = menuCommandService.
FindCommand
(MenuCommands.KeyInvokeSmartTag);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
171
_oldUndoCommand = menuService.
FindCommand
(StandardCommands.Undo);
177
_oldRedoCommand = menuService.
FindCommand
(StandardCommands.Redo);
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (3)
27
_menuCommandServiceMock.Setup(mcs => mcs.
FindCommand
(_commandID))
38
_item.MenuService?.
FindCommand
(_commandID)?.CommandID.Should().Be(_commandID);
86
_menuCommandServiceMock.Setup(mcs => mcs.
FindCommand
(_commandID))
System\Windows\Forms\Design\StatusCommandUITests.cs (1)
29
.Setup(mcs => mcs.
FindCommand
(MenuCommands.SetStatusRectangle))