2 writes to _newCommands
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1509
_newCommands
??= [];
1634
_newCommands
= null;
39 references to _newCommands
System.Windows.Forms.Design (39)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (39)
230
if (
_newCommands
is not null)
232
foreach (MenuCommand newCommand in
_newCommands
)
248
if (
_newCommands
is not null)
250
foreach (MenuCommand newCommand in
_newCommands
)
280
if (
_newCommands
is null)
286
foreach (MenuCommand newCommand in
_newCommands
)
1511
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectNext));
1512
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeySelect), MenuCommands.KeySelectPrevious));
1513
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyDefault), MenuCommands.KeyDefaultAction));
1514
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyEdit), MenuCommands.EditLabel));
1516
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveUp));
1517
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveDown));
1518
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveLeft));
1519
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyMoveRight));
1521
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeUp));
1522
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeDown));
1523
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeLeft));
1524
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeyNudgeRight));
1526
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthIncrease));
1527
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightIncrease));
1528
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeWidthDecrease));
1529
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyMove), MenuCommands.KeySizeHeightDecrease));
1531
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyCancel));
1532
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyCancel), MenuCommands.KeyReverseCancel));
1533
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandCopy), StandardCommands.Copy));
1534
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandSelectAll), StandardCommands.SelectAll));
1536
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyHome));
1537
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyEnd));
1538
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandHome), MenuCommands.KeyShiftHome));
1539
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandEnd), MenuCommands.KeyShiftEnd));
1542
_newCommands
.Add(new MenuCommand(new EventHandler(OnKeyShowDesignerActions), MenuCommands.KeyInvokeSmartTag));
1544
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandCopy), StandardCommands.Cut));
1545
_newCommands
.Add(new MenuCommand(new EventHandler(OnCommandDelete), StandardCommands.Delete));
1555
if (
_newCommands
is not null)
1557
foreach (MenuCommand newCommand in
_newCommands
)
1611
if (
_newCommands
is not null)
1613
foreach (MenuCommand newCommand in
_newCommands
)
1631
if (
_newCommands
is not null)
1633
_newCommands
.Clear();