Ejemplo n.º 1
0
        protected void RemoveSelectedAssetsLinkButton_Click(object sender, EventArgs e)
        {
            if (SelectedCartItemIdList.Count == 0)
            {
                FeedbackLabel1.SetErrorMessage("no assets selected");
                return;
            }

            foreach (int cartId in SelectedCartItemIdList)
            {
                ContextInfo.CartManager.RemoveCartItemFromCart(cartId);
            }

            SelectedCartItemIdList.Clear();
            FeedbackLabel1.SetSuccessMessage("selected assets removed from cart");
            Bind(CurrentPage);
        }
Ejemplo n.º 2
0
 protected void DeselectAllLinkButton_Click(object sender, EventArgs e)
 {
     AllAssetsSelected = false;
     SelectedCartItemIdList.Clear();
     ToggleSelectedAssets();
 }