void ReleaseDesignerOutlets()
        {
            if (CustomDropdown != null)
            {
                CustomDropdown.Dispose();
                CustomDropdown = null;
            }

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

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

            if (FilterDropdown != null)
            {
                FilterDropdown.Dispose();
                FilterDropdown = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (acmField != null)
            {
                acmField.Dispose();
                acmField = null;
            }

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

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

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

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

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

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