System.Windows.Forms.ComboBox.Dispose(bool)

Here are the examples of the csharp api class System.Windows.Forms.ComboBox.Dispose(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

17 Examples 7

1. Example

View license
protected override void Dispose(bool disposing)
		{
			if (animationsNeedCleanup)
			{
				NativeMethods.BufferedPaintUnInit();
				animationsNeedCleanup = false;
			}
			base.Dispose(disposing);
		}

2. Example

Project: gitter
Source File: CustomPopupComboBox.cs
View license
protected override void Dispose(bool disposing)
		{
			if(disposing)
			{
				if(_dropDown != null)
				{
					_dropDown.Closed -= dropDown_Closed;
					_dropDown.Dispose();
					_dropDown = null;
				}
			}
			base.Dispose(disposing);
		}

3. Example

View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                SelectedIndexChanged -= new EventHandler(ImageSizePickerComboBox_SelectedIndexChanged);
            }
            base.Dispose(disposing);
        }

4. Example

Project: ClearCanvas
Source File: SuggestComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // setting this to null will also unsubscribe from the last subscribed-to provider
                this.SuggestionProvider = null;
            }

            base.Dispose(disposing);
        }

5. Example

Project: TaskScheduler
Source File: CustomComboBox.cs
View license
protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				if(m_timerAutoFocus != null)
				{
					m_timerAutoFocus.Dispose();
					m_timerAutoFocus = null;
				}
			}
			base.Dispose(disposing);
		}

6. Example

Project: DotSpatial
Source File: ColorDropDown.cs
View license
protected override void Dispose(bool disposing)
        {
            _colors = null;
            _backBrush?.Dispose();
            _foreBrush?.Dispose();

            base.Dispose(disposing);
        }

7. Example

Project: tesvsnip
Source File: CustomComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (m_timerAutoFocus != null)
                {
                    m_timerAutoFocus.Dispose();
                    m_timerAutoFocus = null;
                }
            }
            base.Dispose(disposing);
        }

8. Example

Project: falloutsnip
Source File: CustomComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (m_timerAutoFocus != null)
                {
                    m_timerAutoFocus.Dispose();
                    m_timerAutoFocus = null;
                }
            }
            base.Dispose(disposing);
        }

9. Example

Project: TileIconifier
Source File: SkinnableComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            if (disposing && glyphFont.IsValueCreated)
            {
                glyphFont.Value.Dispose();
            }

            base.Dispose(disposing);
        }

10. Example

Project: OpenLiveWriter
Source File: ImageComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

11. Example

View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

12. Example

View license
protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if(components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

13. Example

View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

14. Example

View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

15. Example

Project: SharpBoot
Source File: GroupedComboBox.cs
View license
protected override void Dispose(bool disposing) {
        if (_bindingSource != null) _bindingSource.Dispose();
        if (_internalSource != null) _internalSource.Dispose();
        
        base.Dispose(disposing);
    }

16. Example

View license
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                RemoveDropDownNotifier();

                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

17. Example

Project: DiabloInterface
Source File: FontComboBox.cs
View license
protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (disposing)
            {
                foreach (var font in fontCache.Values)
                {
                    font.Dispose();
                }
                fontCache.Clear();

                if (stringFormat != null)
                {
                    stringFormat.Dispose();
                    stringFormat = null;
                }
            }
        }