2 writes to _oldCommands
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1471
_oldCommands
??= [];
1640
_oldCommands
= null;
29 references to _oldCommands
System.Windows.Forms.Design (29)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (29)
265
if (
_oldCommands
is null)
271
foreach (MenuCommand oldCommand in
_oldCommands
)
443
foreach (MenuCommand oldCommand in
_oldCommands
)
1476
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySelectNext));
1477
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySelectPrevious));
1478
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyDefaultAction));
1480
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyMoveUp));
1481
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyMoveDown));
1482
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyMoveLeft));
1483
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyMoveRight));
1485
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyNudgeUp));
1486
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyNudgeDown));
1487
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyNudgeLeft));
1488
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyNudgeRight));
1490
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySizeWidthIncrease));
1491
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySizeHeightIncrease));
1492
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySizeWidthDecrease));
1493
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeySizeHeightDecrease));
1495
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyCancel));
1496
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyReverseCancel));
1497
_oldCommands
.Add(mcs.FindCommand(StandardCommands.Copy));
1498
_oldCommands
.Add(mcs.FindCommand(StandardCommands.SelectAll));
1499
_oldCommands
.Add(mcs.FindCommand(MenuCommands.KeyInvokeSmartTag));
1501
_oldCommands
.Add(mcs.FindCommand(StandardCommands.Cut));
1502
_oldCommands
.Add(mcs.FindCommand(StandardCommands.Delete));
1564
if (
_oldCommands
is not null)
1566
foreach (MenuCommand oldCommand in
_oldCommands
)
1637
if (
_oldCommands
is not null)
1639
_oldCommands
.Clear();