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)
60
get =>
_currentItem
.Owner;
117
ToolStripItem selectedItem =
_currentItem
;
195
DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool,
_currentItem
, new EventHandler(AddNewItemClick), true, _serviceProvider, true)
200
DropDown = ToolStripDesignerUtils.GetNewItemDropDown(ParentTool,
_currentItem
, new EventHandler(AddNewItemClick), false, _serviceProvider, true)
205
if (
_currentItem
is ToolStripDropDownItem)
210
if (_designerHost.GetDesigner(
_currentItem
) is ToolStripItemDesigner itemDesigner)
212
_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner, TypeDescriptor.GetProperties(
_currentItem
)["DropDownItems"], false);
236
if (_designerHost.GetDesigner(
_currentItem
) is ToolStripItemDesigner itemDesigner)
241
EditorServiceContext.EditValue(itemDesigner,
_currentItem
, "Image");
302
if (t !=
_currentItem
.GetType())
305
ToolStripItemDesigner _designer = (ToolStripItemDesigner)_designerHost.GetDesigner(
_currentItem
);
312
if (
_currentItem
is ToolStripMenuItem)
348
InsertIntoDropDown((ToolStripDropDown)
_currentItem
.Owner, t);
374
int dummyIndex = parent.Items.IndexOf(
_currentItem
);
436
int dummyIndex = parent.Items.IndexOf(
_currentItem
);
475
int dummyIndex = parent.Items.IndexOf(
_currentItem
);
515
int dummyIndex = parent.Items.IndexOf(
_currentItem
);
571
PropertyDescriptor getProperty = TypeDescriptor.GetProperties(
_currentItem
)[propertyName];
587
PropertyDescriptor getProperty = TypeDescriptor.GetProperties(
_currentItem
)[propertyName];
591
return getProperty.GetValue(
_currentItem
);
600
ChangeProperty(
_currentItem
, propertyName, value);
637
ToolStripItem selectedItem =
_currentItem
;