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)
230if (_newCommands is not null) 232foreach (MenuCommand newCommand in _newCommands) 248if (_newCommands is not null) 250foreach (MenuCommand newCommand in _newCommands) 280if (_newCommands is null) 286foreach (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)); 1555if (_newCommands is not null) 1557foreach (MenuCommand newCommand in _newCommands) 1611if (_newCommands is not null) 1613foreach (MenuCommand newCommand in _newCommands) 1631if (_newCommands is not null) 1633_newCommands.Clear();