Exemplo n.º 1
0
        private void RefreshProducts(ICollection <Product> products)
        {
            ProductsInCart.Clear();

            foreach (var item in products)
            {
                ProductsInCart.Add(item);
            }
        }
 private void BackMethod(object param)
 {
     if (StartWindowViewModel.stateUser == false)
     {
         MenuView startWindow = new MenuView();
         App.Current.MainWindow.Close();
         App.Current.MainWindow = startWindow;
         startWindow.Show();
     }
     else
     {
         ProductsInCart.Clear();
         MenuForAccount startWindow = new MenuForAccount();
         App.Current.MainWindow.Close();
         App.Current.MainWindow = startWindow;
         startWindow.Show();
     }
 }