2 writes to Context
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.cs (2)
226
Context
= context;
269
Context
= lastContext;
28 references to Context
System.Windows.Forms.Design (24)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
956
IComponentChangeService? changeService = _editor.
Context
?.GetService<IComponentChangeService>();
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
70
protected ITypeDescriptorContext? Context => _editor.
Context
;
System\ComponentModel\Design\CollectionEditor.cs (13)
95
if (
Context
.TryGetService(out IDesignerHost? host) && typeof(IComponent).IsAssignableFrom(itemType))
201
if (
Context
.TryGetService(out IDesignerHost? host))
230
ITypeDescriptorContext? lastContext =
Context
;
238
IDesignerHost? host =
Context
?.GetService<IDesignerHost>();
315
inheritanceService =
Context
?.GetService<IInheritanceService>();
346
protected object? GetService(Type serviceType) =>
Context
?.GetService(serviceType);
353
Debug.Assert(
Context
is not null);
354
if (!_ignoreChangedEvents && sender !=
Context
.Instance)
357
Context
.OnComponentChanged();
366
Debug.Assert(
Context
is not null);
367
if (!_ignoreChangingEvents && sender !=
Context
.Instance)
370
Context
.OnComponentChanging();
407
if (
Context
.TryGetService(out IHelpService? helpService))
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (5)
51
if (
Context
?.Instance is not ListView listview)
58
IComponentChangeService? changeService =
Context
.GetService<IComponentChangeService>();
62
property = TypeDescriptor.GetProperties(
Context
.Instance)["Columns"];
63
changeService.OnComponentChanging(
Context
.Instance, property);
70
changeService.OnComponentChanged(
Context
.Instance, property);
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
66
return editor.EditValue(
Context
, null);
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (2)
39
if (
Context
.TryGetService(out INameCreationService nameService)
40
&&
Context
.TryGetService(out IContainer container))
System\Windows\Forms\Design\TabPageCollectionEditor.cs (1)
24
var tabControl =
Context
?.Instance as TabControl;
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\ArrayEditorTests.cs (1)
226
public new ITypeDescriptorContext Context => base.
Context
;
System\ComponentModel\Design\CollectionEditorTests.cs (1)
1028
public new ITypeDescriptorContext Context => base.
Context
;
System\ComponentModel\Design\CollectionFormTests.cs (2)
831
public new ITypeDescriptorContext Context => base.
Context
;
840
public new ITypeDescriptorContext Context => base.
Context
;