Exemplo n.º 1
0
 private void AddToCartButton_Click(object sender, RoutedEventArgs e)
 {
     foreach (var item in itemGridView.SelectedItems)
     {
         var flower = item as SampleDataItem;
         SampleDataSource.AddToCart(new FlowerShop.Data.SampleCartItem(flower, 1, flower.Price));
     }
     bottomAppBar.IsOpen = false;
 }
Exemplo n.º 2
0
        private void addToCartButton_Click(object sender, RoutedEventArgs e)
        {
            var item = (FlowerShop.Data.SampleDataItem) this.flipView.SelectedItem;

            SampleDataSource.AddToCart(new FlowerShop.Data.SampleCartItem(item, 1, item.Price));
        }