protected override void OnClick(MenuItemData target) { if (target.Type == "use") { UserProfile.InfoBag.UseItemByPos(ItemIndex, HItemTypes.Common); } else if (target.Type == "throw") { UserProfile.InfoBag.ClearItemAllByPos(ItemIndex); } else if (target.Type == "sold") { UserProfile.InfoBag.SellItemAllByPos(ItemIndex); } else { return; } Form.MenuRefresh(); }