Пример #1
0
    protected void deletePreparat(object sender, EventArgs e)
    {
        Comanda     comanda = Session["comanda"] as Comanda;
        LinkButton  adauga  = sender as LinkButton;
        int         id      = Convert.ToInt32(adauga.CommandArgument);
        ItemComanda item    = comanda.ListaItem[id] as ItemComanda;

        comanda.removeItemComanda(item);
        item.scadeCantitate();
        comanda.addItemComanda(item);
        Session["comanda"] = comanda;
        updateBadge();
        ComandaListView.DataBind();
        showTotal();
    }