예제 #1
0
        private void newUserWindow_Loaded(object sender, RoutedEventArgs e)
        {
            SetProducts set = new SetProducts();

            cmbUst.ItemsSource    = set.GetAllCategories();
            listsepet.ItemsSource = set.GetAllSepet();
        }
예제 #2
0
        public DetailWindow()
        {
            InitializeComponent();

            SetProducts set = new SetProducts();

            cmbUst.ItemsSource = set.GetAllCategories();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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;
                }
            }
        }