1 write to _serviceProvider
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
23
_serviceProvider
= provider;
18 references to _serviceProvider
System.Windows.Forms.Design (18)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (18)
33
StandardCommandToolStripMenuItem codeMenuItem = new(StandardCommands.ViewCode, SR.ContextMenuViewCode, "viewcode",
_serviceProvider
);
42
StandardCommandToolStripMenuItem ZOrderMenuItem = new(StandardCommands.BringToFront, SR.ContextMenuBringToFront, "bringToFront",
_serviceProvider
);
44
ZOrderMenuItem = new StandardCommandToolStripMenuItem(StandardCommands.SendToBack, SR.ContextMenuSendToBack, "sendToBack",
_serviceProvider
);
53
StandardCommandToolStripMenuItem gridMenuItem = new(StandardCommands.AlignToGrid, SR.ContextMenuAlignToGrid, "alignToGrid",
_serviceProvider
);
62
StandardCommandToolStripMenuItem lockMenuItem = new(StandardCommands.LockControls, SR.ContextMenuLockControls, "lockControls",
_serviceProvider
);
83
if (
_serviceProvider
.GetService(typeof(ISelectionService)) is ISelectionService selectionService &&
_serviceProvider
.GetService(typeof(IDesignerHost)) is IDesignerHost host)
120
if (
_serviceProvider
.GetService(typeof(IUIService)) is IUIService uis)
136
ToolStripMenuItem selectListItem = new SelectToolStripMenuItem(parent,
_serviceProvider
);
156
if (
_serviceProvider
.TryGetService(out IMenuCommandService? menuCommandService))
172
StandardCommandToolStripMenuItem stdMenuItem = new(StandardCommands.Cut, SR.ContextMenuCut, "cut",
_serviceProvider
);
174
stdMenuItem = new StandardCommandToolStripMenuItem(StandardCommands.Copy, SR.ContextMenuCopy, "copy",
_serviceProvider
);
176
stdMenuItem = new StandardCommandToolStripMenuItem(StandardCommands.Paste, SR.ContextMenuPaste, "paste",
_serviceProvider
);
178
stdMenuItem = new StandardCommandToolStripMenuItem(StandardCommands.Delete, SR.ContextMenuDelete, "delete",
_serviceProvider
);
187
StandardCommandToolStripMenuItem stdMenuItem = new(StandardCommands.DocumentOutline, SR.ContextMenuDocumentOutline, "",
_serviceProvider
);
189
stdMenuItem = new StandardCommandToolStripMenuItem(MenuCommands.DesignerProperties, SR.ContextMenuProperties, "properties",
_serviceProvider
);
200
if (
_serviceProvider
.TryGetService(out IUIService? uis))
237
if (
_serviceProvider
.TryGetService(out IUIService? uis))