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