Beispiel #1
0
 private void BindData()
 {
     subTotal              = dataService.GetCartTotal();
     taxTextView.Text      = CalculateTax().ToString("C2");
     subTotalTextView.Text = subTotal.ToString("C2");
     totalTextView.Text    = "$" + CalculateTotal().ToString("f2");
 }
Beispiel #2
0
        public CartViewPage()
        {
            InitializeComponent();

            cartDataService = new CartDataService();
            Items           = new ObservableCollection <Models.CartItem>();

            MyListView.ItemsSource = cartDataService.GetCart().CartItems;

            MyListView.HasUnevenRows = true;

            TotalLabel.Text = cartDataService.GetCartTotal().ToString("C2");

            CheckoutButton.Clicked += CheckoutButton_Clicked;

            ContinueOrderingButton.Clicked += ContinueOrderingButton_Clicked;
        }
Beispiel #3
0
 protected override void OnAppearing()
 {
     TotalLabel.Text = cartDataService.GetCartTotal().ToString("C2");
 }
Beispiel #4
0
 private void BindData()
 {
     cartTotalTextView.Text = cartDataService.GetCartTotal().ToString("C2");
 }