1 write to _currentItem
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
51_currentItem = currentItem as ToolStripItem;
22 references to _currentItem
System.Windows.Forms.Design (22)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (22)
60get => _currentItem.Owner; 117ToolStripItem selectedItem = _currentItem; 195DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool, _currentItem, new EventHandler(AddNewItemClick), true, _serviceProvider, true) 200DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool, _currentItem, new EventHandler(AddNewItemClick), false, _serviceProvider, true) 205if (_currentItem is ToolStripDropDownItem) 210if (_designerHost.GetDesigner(_currentItem) is ToolStripItemDesigner itemDesigner) 212_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner, TypeDescriptor.GetProperties(_currentItem)["DropDownItems"], false); 236if (_designerHost.GetDesigner(_currentItem) is ToolStripItemDesigner itemDesigner) 241EditorServiceContext.EditValue(itemDesigner, _currentItem, "Image"); 302if (t != _currentItem.GetType()) 305ToolStripItemDesigner _designer = (ToolStripItemDesigner)_designerHost.GetDesigner(_currentItem); 312if (_currentItem is ToolStripMenuItem) 348InsertIntoDropDown((ToolStripDropDown)_currentItem.Owner, t); 374int dummyIndex = parent.Items.IndexOf(_currentItem); 436int dummyIndex = parent.Items.IndexOf(_currentItem); 475int dummyIndex = parent.Items.IndexOf(_currentItem); 515int dummyIndex = parent.Items.IndexOf(_currentItem); 571PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 587PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 591return getProperty.GetValue(_currentItem); 600ChangeProperty(_currentItem, propertyName, value); 637ToolStripItem selectedItem = _currentItem;