Beispiel #1
0
        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();
        }
Beispiel #3
0
        private void AnimateCarousel()
        {
            SetProducts setProducts = new SetProducts();

            Carousel.DataContext = setProducts.GetAllItems();
            Storyboard      storyboard = (this.Resources["CarouselStoryboard"] as Storyboard);
            DoubleAnimation animation  = storyboard.Children.First() as DoubleAnimation;

            animation.To = -this.Width * currentElement;
            storyboard.Begin();
        }
        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();
        }
Beispiel #5
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;
                }
            }
        }