187 writes to Owner
System.Windows.Forms.Tests (187)
System\Windows\Forms\ToolStripButtonTests.cs (7)
666
Owner
= owner,
694
Owner
= owner
885
Owner
= owner,
906
Owner
= owner
1283
Owner
= owner
1374
Owner
= owner
1506
Owner
= owner
System\Windows\Forms\ToolStripControlHostTests.cs (3)
1462
Owner
= owner,
3083
Owner
= owner
3272
Owner
= owner
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
412
Owner
= owner
System\Windows\Forms\ToolStripItemTests.cs (163)
484
Owner
= owner
516
Owner
= owner
588
Owner
= owner,
615
Owner
= owner
811
Owner
= owner
895
Owner
= owner
941
Owner
= owner
1218
Owner
= owner
1262
Owner
= owner,
1307
Owner
= owner
1552
Owner
= owner
1593
Owner
= owner
1613
Owner
= owner
1795
Owner
= owner
1815
Owner
= owner
1924
Owner
= owner
1944
Owner
= owner
2061
Owner
= owner
2083
Owner
= owner
2136
Owner
= owner
2177
Owner
= owner
2380
Owner
= owner
2475
Owner
= owner
2622
Owner
= owner
2649
Owner
= owner
2687
Owner
= owner
2714
Owner
= owner
2957
Owner
= owner
3008
Owner
= owner,
3049
Owner
= owner,
3242
Owner
= owner
3283
Owner
= owner
3303
Owner
= owner
3483
Owner
= owner
3519
Owner
= owner
3682
Owner
= owner
3703
Owner
= owner
3724
Owner
= owner
3902
Owner
= owner
3947
Owner
= owner
4111
Owner
= owner
4156
Owner
= owner
4200
Owner
= owner
4247
Owner
= owner
4458
Owner
= owner
4507
Owner
= owner
4552
Owner
= owner
4792
Owner
= owner
4870
Owner
= owner
4958
Owner
= owner
5009
Owner
= owner
5052
Owner
= owner
5291
Owner
= owner
5383
Owner
= owner
5427
Owner
= owner
5467
Owner
= owner
5650
Owner
= owner,
5683
Owner
= owner,
5815
Owner
= owner
5826
Owner
= owner
5840
Owner
= owner
5919
Owner
= owner
5958
Owner
= owner
6251
Owner
= owner
6296
Owner
= owner
6446
Owner
= owner
6454
item.
Owner
= owner;
6462
item.
Owner
= otherOwner;
6470
item.
Owner
= null;
6478
item.
Owner
= statusOwner;
6496
Owner
= owner
6504
item.
Owner
= owner;
6512
item.
Owner
= otherOwner;
6520
item.
Owner
= null;
6528
item.
Owner
= statusOwner;
6565
item.
Owner
= owner;
6571
item.
Owner
= owner;
6592
item.
Owner
= owner;
6598
item.
Owner
= owner;
6605
item.
Owner
= otherOwner;
6612
item.
Owner
= null;
6620
item.
Owner
= owner;
6633
Owner
= owner
6654
Owner
= owner
6700
Owner
= owner,
6748
Owner
= owner
6787
Owner
= owner
7106
Owner
= owner
7141
Owner
= owner,
7185
Owner
= owner
7227
Owner
= owner
7493
Owner
= owner
7531
Owner
= owner
7711
Owner
= owner
7723
Owner
= owner
7735
Owner
= owner
7789
Owner
= parent,
7860
Owner
= owner
7896
Owner
= owner
8086
Owner
= owner
8128
Owner
= owner
8316
Owner
= owner
8363
Owner
= owner
8508
Owner
= owner
8544
Owner
= owner,
8591
Owner
= owner
8633
Owner
= owner
8843
Owner
= owner
8886
Owner
= owner
9137
Owner
= owner
9268
Owner
= owner
9312
Owner
= owner,
9357
Owner
= owner
9650
Owner
= owner
9686
Owner
= owner
9915
Owner
= owner
10068
Owner
= owner
10207
Owner
= owner
10224
Owner
= owner
10310
Owner
= owner
10342
Owner
= owner
10402
Owner
= owner
10418
Owner
= owner
10512
Owner
= owner
10529
Owner
= owner
10656
Owner
= owner
10686
Owner
= owner
10810
Owner
= owner
10834
Owner
= owner
11192
Owner
= owner
11225
Owner
= owner
11383
Owner
= owner,
11421
Owner
= owner,
11571
Owner
= owner
11601
Owner
= owner
11868
Owner
= owner
11968
Owner
= owner
12000
Owner
= owner
12231
Owner
= owner,
12293
Owner
= owner,
12339
Owner
= owner,
12761
Owner
= owner
12811
Owner
= owner
12997
Owner
= owner
13047
Owner
= owner
13285
Owner
= owner
13329
Owner
= owner
13395
Owner
= owner
13461
Owner
= owner
13762
Owner
= owner
13814
Owner
= owner
14330
Owner
= ownerItemOwner
14338
Owner
= owner
14360
Owner
= owner
14378
Owner
= owner
14397
Owner
= owner
14430
Owner
= owner
14448
Owner
= owner
14600
Owner
= owner
14647
Owner
= owner
14949
Owner
= owner
14993
Owner
= owner,
15038
Owner
= owner
System\Windows\Forms\ToolStripSeparatorTests.cs (10)
806
Owner
= owner
836
Owner
= owner
944
Owner
= owner,
975
Owner
= owner,
1136
Owner
= owner
1229
Owner
= owner,
1300
Owner
= owner,
1345
Owner
= owner,
1401
Owner
= owner
1463
Owner
= owner
System\Windows\Forms\ToolStripTests.cs (3)
7003
Owner
= control
7045
Owner
= control
7115
Owner
= otherControl
284 references to Owner
System.Windows.Forms (107)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
554
Owner?.ToolStripControlHost?.
Owner
?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
2137
if (this is ToolStripDropDown dropDown && dropDown.OwnerItem is not null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.
Owner
is not null && dropDown.OwnerItem.
Owner
.IsInDesignMode)))
3509
if (!IsDropDown && item.
Owner
== this)
4066
if (item.
Owner
!= this)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
202
if (
Owner
is null)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObject.cs (1)
39
? owner.Owner?.
Owner
?.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
685
if (oldParent is not null &&
Owner
is null && newParent is null && _control is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (2)
35
&& _toolStripControlHost.
Owner
is not null
36
? _toolStripControlHost.
Owner
.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
305
_ownerItem?.
Owner
is not null ? _ownerItem.
Owner
.DropDownOwnerWindow : base.DropDownOwnerWindow;
648
if (_ownerItem.Placement == ToolStripItemPlacement.Overflow && _ownerItem.
Owner
is not null)
650
return _ownerItem.
Owner
.OverflowButton.DropDown;
655
return _ownerItem.
Owner
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
179
if (
Owner
is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (2)
66
_owner.
Owner
is ToolStripDropDown toolStripDropDown
180
if (_owner.
Owner
is not ToolStripDropDown dropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (50)
659
if (
Owner
is not null and StatusStrip)
801
if (
Owner
is not null)
803
parentEnabled =
Owner
.Enabled;
966
IArrangedElement? IArrangedElement.Container => ParentInternal ??
Owner
;
1026
if (image is null &&
Owner
?.ImageList is not null && ImageIndexer.ActualIndex >= 0)
1029
if (!disposing && ImageIndexer.ActualIndex <
Owner
.ImageList.Images.Count)
1032
image =
Owner
.ImageList.Images[ImageIndexer.ActualIndex];
1117
if ((
Owner
is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex
1118
&&
Owner
.ImageList is not null && ImageIndexer.Index >=
Owner
.ImageList.Images.Count)
1120
return
Owner
.ImageList.Images.Count - 1;
1229
else if (
Owner
is not null &&
Owner
.IsDropDown)
1434
else if (
Owner
is not null)
1437
currentParent =
Owner
as ToolStripDropDown;
1498
if (
Owner
is not null)
1500
LayoutTransaction.DoLayout(
Owner
,
Owner
, "Overflow");
1557
bool usingImageList = ((
Owner
is not null) && (
Owner
.ImageList is not null) && (ImageIndexer.ActualIndex >= 0));
1561
ToolStrip? ownerToolStrip =
Owner
;
1571
imageSize =
Owner
?.ImageList?.ImageSize ?? Size.Empty;
1626
if (
Owner
is not null)
1628
return
Owner
.Renderer;
1654
if (
Owner
is not null)
1656
rightToLeft =
Owner
.RightToLeft;
1923
textDirection = (
Owner
is null) ? ToolStripTextDirection.Horizontal :
Owner
.TextDirection;
2099
if (
Owner
is not null)
2102
Debug.Assert(
Owner
.Items.Contains(this), "How can there be a owner and not be in the collection?");
2103
Owner
.Items.Remove(this);
2326
private Font? GetOwnerFont() =>
Owner
?.Font;
2341
return
Owner
as ToolStripDropDown;
2386
if (
Owner
is not null)
2388
LayoutTransaction.DoLayout(
Owner
, this, affectedProperty);
2393
Owner
?.Invalidate();
2426
if (SupportsItemClick &&
Owner
is not null)
2428
Owner
.HandleItemClick(this);
2433
if (SupportsItemClick &&
Owner
is not null)
2435
Owner
.HandleItemClicked(this);
2960
if (
Owner
is not null)
3009
if (
Owner
is not null && !(
Owner
.IsDisposed ||
Owner
.Disposing))
3011
Owner
.OnItemVisibleChanged(new ToolStripItemEventArgs(this), performLayout: true);
3133
if (
Owner
is not null &&
Owner
.IsCurrentlyDragging)
3434
parent ??= (IsOnOverflow &&
Owner
is not null) ?
Owner
.OverflowButton.DropDown :
Owner
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemImageIndexer.cs (1)
20
get => _item.
Owner
?.ImageList;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
511
item.
Owner
?.Items.Remove(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
334
if (
Owner
is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (3)
1206
PreviousIndexCollection = source.
Owner
!.Items
1226
PreviousIndexCollection = source.
Owner
!.Items
1241
PreviousIndexCollection = source.
Owner
!.Items
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (8)
375
ToolStrip? owner =
Owner
;
925
if (
Owner
is not null)
927
if (
Owner
.Shortcuts.ContainsKey(shortcut))
930
Owner
.Shortcuts[shortcut] = this;
934
Owner
.Shortcuts.Add(shortcut, this);
937
_lastOwner =
Owner
;
946
if (
Owner
is null)
1073
if (
Owner
is ToolStripDropDownMenu dropDownMenu)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (8)
25
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
38
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
69
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
89
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
113
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
145
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
159
return _ownerItem.
Owner
is ToolStripDropDownMenu;
167
if (_ownerItem.
Owner
is ToolStripDropDownMenu menu)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
604
else if (item.
Owner
is not null && item.BackColor != item.
Owner
.BackColor)
655
else if (item.
Owner
is not null && item.BackColor != item.
Owner
.BackColor)
1587
else if (item.
Owner
is not null && item.BackColor != item.
Owner
.BackColor)
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
87
if (
Owner
is not null and StatusStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
21
_ownerToolStripProgressBarControl.Owner?.
Owner
?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabelAccessibleObject.cs (1)
43
_owner.OwnerScrollButton?.
Owner
?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (4)
171
ToolStrip? parent = ParentInternal ??
Owner
;
259
ToolStrip? parent = ParentInternal ??
Owner
;
290
if (
Owner
is not null && ParentInternal is not null)
308
if (
Owner
is ToolStripDropDownMenu dropDownMenu)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (2)
119
LayoutTransaction.DoLayout(
Owner
, this, PropertyNames.BorderStyle);
194
if (
Owner
is not null)
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
26
if (values[i] is ToolStripItem currentItem && currentItem.
Owner
== menu)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
38
if (_mergeItem.
Owner
is null)
System.Windows.Forms.Design (97)
System\ComponentModel\Design\DesignerActionUI.cs (1)
674
if (item.
Owner
is not null)
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
33
get => _currentItem.
Owner
;
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
282
parent ??= item.
Owner
;
System\Windows\Forms\Design\ToolStripDesigner.cs (13)
754
if (item.Placement == ToolStripItemPlacement.Overflow && item.
Owner
== ToolStrip)
773
if (item.
Owner
== ToolStrip)
789
if (topMostItem is not null && topMostItem.
Owner
== ToolStrip)
798
ToolStripItem parentItem = ((ToolStripDropDown)(item.
Owner
)).OwnerItem;
803
if (topMostItem is not null && topMostItem.
Owner
== ToolStrip)
913
if (selectedItem.
Owner
== ToolStrip)
976
if (selectedItem is ToolStripItem currentSel && currentSel.
Owner
!= ToolStrip)
984
if (addingItem is not null && addingItem.
Owner
is not null)
986
if (addingItem.
Owner
.Site is null)
1012
ToolStrip parent = changingItem.
Owner
;
1034
if (e.Component is ToolStripItem item && item.
Owner
== Component)
1111
if (e.Component is ToolStripItem item && item.
Owner
== Component)
1614
ToolStripDropDown topmost = item.
Owner
as ToolStripDropDown;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
94
parent = stripItem.
Owner
;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
457
parent = item.
Owner
as ToolStripDropDown;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (7)
398
parent = glyphItem.
Owner
;
436
bSvc?.Invalidate(glyphItem.
Owner
.Bounds);
561
if (glyphItem.
Owner
is ToolStripDropDown parentDropDown)
600
ToolStrip owner = selectedItem.
Owner
;
733
parentToolStrip = overflow.OwnerItem.
Owner
;
849
if (data.Owner == glyphItem.
Owner
)
1003
if (glyphItem.
Owner
is ToolStripDropDown parentDropDown)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
60
get => _currentItem.
Owner
;
348
InsertIntoDropDown((ToolStripDropDown)_currentItem.
Owner
, t);
407
if ((parent is not null) && (parent.OwnerItem is not null) && (parent.OwnerItem.
Owner
is not null))
409
if (designerHost.GetDesigner(parent.OwnerItem.
Owner
) is ToolStripDesigner toolStripDesigner)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (21)
160
return parent ?? ToolStripItem.
Owner
;
175
ToolStrip strip = ToolStripItem.
Owner
;
268
parentControls.Add(item.
Owner
);
269
startComp = item.
Owner
;
273
if (item.
Owner
is ToolStripDropDown parentDropDown)
286
if (item.
Owner
.Site is not null)
288
parentControls.Add(item.
Owner
);
291
startComp = item.
Owner
;
334
ToolStripDesigner designer = (ToolStripDesigner)designerHost.GetDesigner(ToolStripItem.
Owner
);
507
protected virtual Component GetOwnerForActionList() => (ToolStripItem.Placement == ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.
Owner
;
509
internal virtual ToolStrip GetMainToolStrip() => ToolStripItem.
Owner
;
585
parent ??= ToolStripItem.
Owner
;
610
if (currentItem.
Owner
is ToolStripDropDown)
612
ToolStripDropDown topmost = currentItem.
Owner
as ToolStripDropDown;
614
while (topmost.OwnerItem is not null && (topmost.OwnerItem.
Owner
is ToolStripDropDown))
616
topmost = topmost.OwnerItem.
Owner
as ToolStripDropDown;
728
parent = ToolStripItem.
Owner
;
988
if (TryGetService(out IDesignerHost designerHost) && currentSelection.
Owner
is ToolStripDropDown parentDropDown)
1018
else if (currentSelection.
Owner
is not null)
1024
behaviorService.Invalidate(behaviorService.ControlRectInAdornerWindow(currentSelection.
Owner
));
1123
parent = ToolStripItem.
Owner
;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (19)
771
parent = selectedItem.
Owner
;
850
ToolStripDropDownItem ownerItem = (ToolStripDropDownItem)((ToolStripDropDown)(typeHereNode.
Owner
)).OwnerItem;
865
if (host.GetDesigner(typeHereNode.
Owner
) is ToolStripDesigner tooldesigner)
945
ToolStripDropDownItem ownerItem = (ToolStripDropDownItem)((ToolStripDropDown)(typeHereNode.
Owner
)).OwnerItem;
956
if (host.GetDesigner(typeHereNode.
Owner
) is ToolStripDesigner tooldesigner)
1272
ToolStripItem owner = ((ToolStripDropDown)item.
Owner
).OwnerItem;
1377
? dropDownItem.
Owner
.OverflowButton.DropDown
1378
: dropDownItem.
Owner
) as ToolStripDropDown;
1402
&& parentToMoveOn.OwnerItem.
Owner
?.Site is not null
1426
if (item.
Owner
is ToolStrip owner)
1444
&& parentToMoveOn.OwnerItem.
Owner
?.Site is not null
1707
next = toolStripItem.
Owner
.Controls[0];
1724
next = ((ToolStripDropDown)toolStripItem.
Owner
).OwnerItem;
1728
ToolStrip owner = toolStripItem.
Owner
;
1731
next = toolStripItem.
Owner
;
1735
next = toolStripItem.
Owner
;
1789
ctl = templateNodeItem.
Owner
;
1850
ToolStripItem parentItem = ((ToolStripDropDown)designerItem.
Owner
).OwnerItem;
1869
if (item.
Owner
is ToolStrip owner)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (28)
292
if (toolItem.IsOnDropDown && toolItem.
Owner
is ToolStripDropDown dropDown)
333
if (MenuItem.
Owner
is ToolStripDropDown dropDown)
428
if (!(MenuItem.
Owner
is ToolStripDropDown) && base.Editor is not null) // we are on Base MenuStrip !!
932
if (lastSelected.
Owner
is ToolStripDropDown lastDropDown && currentSelected.
Owner
is ToolStripDropDown currentDropDown)
966
while (currentItem?.
Owner
is ToolStripDropDown dropDown)
1258
selectedItem = ((ToolStripDropDown)item.
Owner
).OwnerItem as ToolStripDropDownItem;
1321
if (MenuItem.
Owner
is ToolStripDropDown dropDown)
1373
if (!(dropDownItem.
Owner
is ToolStripDropDownMenu) && dropDownItem is not null && dropDownItem.Bounds.Width < _commitedEditorNode.Bounds.Width)
1415
return topMostItem.
Owner
;
1418
return MenuItem.
Owner
;
1428
if (MenuItem.
Owner
is ToolStripDropDown dropDown)
1438
if (item.
Owner
is ToolStripDropDown itemDropDown)
1465
if (item.
Owner
is ToolStripDropDown dropDown)
1614
GetService<BehaviorService>()?.Invalidate(MenuItem.
Owner
.Bounds);
1622
ToolStripDropDown startDropDown = MenuItem.
Owner
as ToolStripDropDown;
1627
startDropDown = ownerItem.
Owner
as ToolStripDropDown;
1862
if (e.Component is ToolStripItem itemAdding && itemAdding.
Owner
is null)
1879
if (itemToBeDeleted.
Owner
is ToolStripDropDown owner)
1962
if (itemToBeDeleted.
Owner
is ToolStripDropDown owner)
2160
if (IsOnContextMenu && !MenuItem.
Owner
.Visible)
2210
ToolStripDropDown parent = currentSelection.
Owner
as ToolStripDropDown;
2219
parent = parent.OwnerItem.
Owner
as ToolStripDropDown;
2238
ToolStripDropDown parent = item.
Owner
as ToolStripDropDown;
2247
parent = parent.OwnerItem.
Owner
as ToolStripDropDown;
2497
if (MenuItem.
Owner
is ToolStripDropDown dropDown)
2536
ToolStripDropDown ownerDropDown = (ToolStripDropDown)MenuItem.
Owner
;
2558
while (currentSelection is not null && currentSelection.
Owner
is ToolStripDropDown dropDown)
System.Windows.Forms.Tests (80)
System\Windows\Forms\ToolStripControlHostTests.cs (25)
1398
Assert.Null(item.
Owner
);
1407
Assert.Null(item.
Owner
);
1417
Assert.Null(item.
Owner
);
1427
Assert.Null(item.
Owner
);
1437
Assert.Null(item.
Owner
);
1467
Assert.Same(owner, item.
Owner
);
1478
Assert.Same(owner, item.
Owner
);
1490
Assert.Same(owner, item.
Owner
);
1502
Assert.Same(owner, item.
Owner
);
1514
Assert.Same(owner, item.
Owner
);
1537
Assert.Null(item.
Owner
);
3066
Assert.Null(item.
Owner
);
3086
Assert.Same(owner, item.
Owner
);
3112
Assert.Null(item.
Owner
);
3121
Assert.Null(item.
Owner
);
3132
Assert.Null(item.
Owner
);
3143
Assert.Null(item.
Owner
);
3154
Assert.Null(item.
Owner
);
3185
Assert.Null(item.
Owner
);
3195
Assert.Null(item.
Owner
);
3207
Assert.Null(item.
Owner
);
3219
Assert.Null(item.
Owner
);
3231
Assert.Null(item.
Owner
);
3255
Assert.Null(item.
Owner
);
3277
Assert.Null(item.
Owner
);
System\Windows\Forms\ToolStripDropDownTests.cs (12)
3240
Assert.Null(item1.
Owner
);
3241
Assert.Null(item2.
Owner
);
3260
Assert.Null(item1.
Owner
);
3261
Assert.Null(item2.
Owner
);
3513
Assert.Null(item1.
Owner
);
3514
Assert.Null(item2.
Owner
);
3533
Assert.Null(item1.
Owner
);
3534
Assert.Null(item2.
Owner
);
3582
Assert.Same(control, item1.
Owner
);
3583
Assert.Same(control, item2.
Owner
);
3601
Assert.Same(control, item1.
Owner
);
3602
Assert.Same(control, item2.
Owner
);
System\Windows\Forms\ToolStripItemTests.cs (31)
6448
Assert.Same(owner, item.
Owner
);
6455
Assert.Same(owner, item.
Owner
);
6463
Assert.Same(otherOwner, item.
Owner
);
6471
Assert.Null(item.
Owner
);
6479
Assert.Same(statusOwner, item.
Owner
);
6498
Assert.Same(owner, item.
Owner
);
6505
Assert.Same(owner, item.
Owner
);
6513
Assert.Same(otherOwner, item.
Owner
);
6521
Assert.Null(item.
Owner
);
6529
Assert.Same(statusOwner, item.
Owner
);
6566
Assert.Same(owner, item.
Owner
);
6572
Assert.Same(owner, item.
Owner
);
6593
Assert.Same(owner, item.
Owner
);
6599
Assert.Same(owner, item.
Owner
);
6606
Assert.Same(otherOwner, item.
Owner
);
6613
Assert.Null(item.
Owner
);
6621
Assert.Same(owner, item.
Owner
);
6976
Assert.Null(item.
Owner
);
6984
Assert.Null(item.
Owner
);
6992
Assert.Null(item.
Owner
);
7000
Assert.Null(item.
Owner
);
7008
Assert.Null(item.
Owner
);
7033
Assert.Null(item.
Owner
);
7041
Assert.Null(item.
Owner
);
7049
Assert.Null(item.
Owner
);
7057
Assert.Null(item.
Owner
);
7065
Assert.Null(item.
Owner
);
9931
Assert.Null(item.
Owner
);
9939
Assert.Null(item.
Owner
);
10084
Assert.Equal(disposing, item.
Owner
is null);
10092
Assert.Equal(disposing, item.
Owner
is null);
System\Windows\Forms\ToolStripTests.cs (12)
4499
Assert.Null(item1.
Owner
);
4500
Assert.Null(item2.
Owner
);
4519
Assert.Null(item1.
Owner
);
4520
Assert.Null(item2.
Owner
);
4667
Assert.Null(item1.
Owner
);
4668
Assert.Null(item2.
Owner
);
4687
Assert.Null(item1.
Owner
);
4688
Assert.Null(item2.
Owner
);
4736
Assert.Same(control, item1.
Owner
);
4737
Assert.Same(control, item2.
Owner
);
4755
Assert.Same(control, item1.
Owner
);
4756
Assert.Same(control, item2.
Owner
);