Radegast.SLImageHandler.tbtbInvShow_Click C# (CSharp) Method

tbtbInvShow_Click() private method

private tbtbInvShow_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void tbtbInvShow_Click(object sender, EventArgs e)
        {
            if (tbtbInvShow.Tag == null || !(tbtbInvShow.Tag is InventoryItem)) return;

            InventoryItem item = (InventoryItem)tbtbInvShow.Tag;

            if (instance.TabConsole.TabExists("inventory"))
            {
                instance.TabConsole.SelectTab("inventory");
                InventoryConsole inv = (InventoryConsole)instance.TabConsole.Tabs["inventory"].Control;
                inv.SelectInventoryNode(item.UUID);
            }
        }