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