Ejemplo n.º 1
0
    private void PullallSalestoTrolley(string userId)
    {
        //create page for each item in orderlist
        Cart_Model type     = new Cart_Model();
        double     AmtTotal = 0;

        List <Cart> orderList = type.ObtainCartOrders(userId);

        OrganiseCartWindow(orderList, out AmtTotal);

        //add amtTotal to page .. remember sumtotal is the total amt..
        // AmtTotal is just an amout for The item
        double tax      = AmtTotal * 0.2;
        double sumTotal = AmtTotal + tax + 20;

        //show total amt with a literal
        literaltot.Text    = "£" + AmtTotal;
        literalVat.Text    = "£" + tax;
        literalTotAmt.Text = "£" + sumTotal;
    }