protected override void Dispose(bool disposing) { if (disposing) { if (registeredButtons != null) { registeredButtons.Clear(); registeredButtons = null; } dropdownMenu = null; } base.Dispose(disposing); }
/// <summary> /// Links the dropdown-menu with this dropdown. /// </summary> /// <param name="dropdownMenu">Dropdown-menu to link.</param> internal void Hook(BaseDropdownMenu dropdownMenu) { this.dropdownMenu = dropdownMenu; }