74 references to IsDisposed
System.Windows.Forms (12)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
168
if (CurrentItem is not null && !CurrentItem.
IsDisposed
&& CurrentItem.Selected && CurrentItem.Enabled && ToolStripManager.ModalMenuFilter.InMenuMode)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1154
(_lastMouseDownedItem.
IsDisposed
|| _lastMouseDownedItem.ParentInternal != this))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3202
if (!_state[s_stateDisposing] && !
IsDisposed
)
System\Windows\Forms\DataBinding\BindingNavigator.cs (8)
263
if (_moveFirstItem is not null && _moveFirstItem.
IsDisposed
)
287
if (_movePreviousItem is not null && _movePreviousItem.
IsDisposed
)
311
if (_moveNextItem is not null && _moveNextItem.
IsDisposed
)
335
if (_moveLastItem is not null && _moveLastItem.
IsDisposed
)
359
if (_addNewItem is not null && _addNewItem.
IsDisposed
)
389
if (_deleteItem is not null && _deleteItem.
IsDisposed
)
419
if (_positionItem is not null && _positionItem.
IsDisposed
)
443
if (_countItem is not null && _countItem.
IsDisposed
)
System\Windows\Forms\Input\MouseHoverTimer.cs (1)
59
if (_currentItem.TryGetTarget(out var currentItem) && !currentItem.
IsDisposed
)
System.Windows.Forms.Tests (62)
System\Windows\Forms\ToolStripButtonTests.cs (6)
65
Assert.False(item.
IsDisposed
);
146
Assert.False(item.
IsDisposed
);
233
Assert.False(item.
IsDisposed
);
323
Assert.False(item.
IsDisposed
);
411
Assert.False(item.
IsDisposed
);
509
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
94
Assert.False(item.
IsDisposed
);
2594
Assert.False(item.
IsDisposed
);
2602
Assert.False(item.
IsDisposed
);
2636
Assert.False(item.
IsDisposed
);
2644
Assert.False(item.
IsDisposed
);
2668
Assert.False(item.
IsDisposed
);
2676
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
65
Assert.False(item.
IsDisposed
);
154
Assert.False(item.
IsDisposed
);
253
Assert.False(item.
IsDisposed
);
361
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripDropDownTests.cs (12)
3247
Assert.True(item1.
IsDisposed
);
3248
Assert.True(item2.
IsDisposed
);
3267
Assert.True(item1.
IsDisposed
);
3268
Assert.True(item2.
IsDisposed
);
3520
Assert.True(item1.
IsDisposed
);
3521
Assert.True(item2.
IsDisposed
);
3540
Assert.True(item1.
IsDisposed
);
3541
Assert.True(item2.
IsDisposed
);
3588
Assert.False(item1.
IsDisposed
);
3589
Assert.False(item2.
IsDisposed
);
3607
Assert.False(item1.
IsDisposed
);
3608
Assert.False(item2.
IsDisposed
);
System\Windows\Forms\ToolStripItemTests.cs (19)
64
Assert.False(item.
IsDisposed
);
149
Assert.False(item.
IsDisposed
);
244
Assert.False(item.
IsDisposed
);
9855
Assert.False(item.
IsDisposed
);
9861
Assert.False(item.
IsDisposed
);
9891
Assert.False(item.
IsDisposed
);
9897
Assert.False(item.
IsDisposed
);
9929
Assert.True(item.
IsDisposed
);
9937
Assert.True(item.
IsDisposed
);
9971
Assert.False(item.
IsDisposed
);
9979
Assert.False(item.
IsDisposed
);
10004
Assert.False(item.
IsDisposed
);
10010
Assert.False(item.
IsDisposed
);
10042
Assert.False(item.
IsDisposed
);
10048
Assert.False(item.
IsDisposed
);
10082
Assert.Equal(disposing, item.
IsDisposed
);
10090
Assert.Equal(disposing, item.
IsDisposed
);
10126
Assert.False(item.
IsDisposed
);
10134
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
69
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
62
Assert.False(item.
IsDisposed
);
System\Windows\Forms\ToolStripTests.cs (12)
4506
Assert.True(item1.
IsDisposed
);
4507
Assert.True(item2.
IsDisposed
);
4526
Assert.True(item1.
IsDisposed
);
4527
Assert.True(item2.
IsDisposed
);
4674
Assert.True(item1.
IsDisposed
);
4675
Assert.True(item2.
IsDisposed
);
4694
Assert.True(item1.
IsDisposed
);
4695
Assert.True(item2.
IsDisposed
);
4742
Assert.False(item1.
IsDisposed
);
4743
Assert.False(item2.
IsDisposed
);
4761
Assert.False(item1.
IsDisposed
);
4762
Assert.False(item2.
IsDisposed
);