private void newUserWindow_Loaded(object sender, RoutedEventArgs e) { SetProducts set = new SetProducts(); cmbUst.ItemsSource = set.GetAllCategories(); listsepet.ItemsSource = set.GetAllSepet(); }
public DetailWindow() { InitializeComponent(); SetProducts set = new SetProducts(); cmbUst.ItemsSource = set.GetAllCategories(); }
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) { SetProducts set = new SetProducts(); cmbUst.ItemsSource = set.GetAllCategories(); //listsepet.ItemsSource = set.GetAllSepet(); foreach (var item in api.GetUsers()) { if (item.Lgn == true) { pnlUser.Visibility = Visibility.Visible; lblUser.Content = "Hoşgeldin " + item.Name + item.Surname; } else if (item.Lgn == false) { pnlUser.Visibility = Visibility.Hidden; } } }