コード例 #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (registeredButtons != null)
                {
                    registeredButtons.Clear();
                    registeredButtons = null;
                }

                dropdownMenu = null;
            }

            base.Dispose(disposing);
        }
コード例 #2
0
 /// <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;
 }