private void cmdDown_Click(object sender, RoutedEventArgs e)
        {
            Button btn  = e.OriginalSource as Button;
            var    data = btn.DataContext as SepetModel;

            api.DeleteSepetItem(data.Id);
            listsepet.ItemsSource = set.GetAllSepet();
        }
Beispiel #2
0
        private void newUserWindow_Loaded(object sender, RoutedEventArgs e)
        {
            SetProducts set = new SetProducts();

            cmbUst.ItemsSource    = set.GetAllCategories();
            listsepet.ItemsSource = set.GetAllSepet();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            SetProducts set = new SetProducts();

            cmbUst.ItemsSource   = set.GetAllCategories();
            listdata.ItemsSource = set.GetAllProducts();
            List <string> colors = new List <string>()
            {
                "Mavi", "Beyaz", "Bordo", "Siyah", "Hardal", "Açık Kahve", "Gri", "Pembe", "Yeşil"
            };

            cmbFilter.ItemsSource = colors;
            listsepet.ItemsSource = set.GetAllSepet();
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     lblSepetInfo.Visibility = Visibility.Hidden;
     listsepet.ItemsSource   = set.GetAllSepet();
 }