/// <summary>Notifies the page handler that its corresponding menu has been opened.</summary>
        /// <param name="menu">The native menu owning all the pages.</param>
        /// <param name="page">The specific page this handler is for.</param>
        /// <param name="inventoryHandler">The inventory handler.</param>
        public virtual void Open(IClickableMenu menu, IClickableMenu page, InventoryHandler inventoryHandler)
        {
            this.NativeMenu       = menu;
            this.MenuPage         = page as TPageType;
            this.InventoryHandler = inventoryHandler;

            if (this.HasInventory)
            {
                InitInventory();
            }
        }
 /// <summary>Tell the handler to close.</summary>
 public virtual void Close()
 {
     this.NativeMenu       = null;
     this.MenuPage         = null;
     this.InventoryHandler = null;
 }