public UserShoppingCartForm(User user)
 {
     InitializeComponent();
     this.user = user;
     manager   = new PriceCompareManager();
     PopulateUserShoopingCart();
 }
Exemple #2
0
 public AddMissingItemsForm(long chainId, int storeId, PriceCompareManager priceCompareManager, IEnumerable <ItemCart> itemsNotFound, FlowLayoutPanel panel)
 {
     InitializeComponent();
     _priceCompareManager = priceCompareManager;
     _itemsNotFound       = itemsNotFound;
     _panel   = panel;
     _storeId = storeId;
     _chainId = chainId;
 }
 public ItemToShowInCart(PriceCompareManager priceCompareManager, long itemCode, string itemName, int itemCount, MouseEventHandler removeItemFromCart)
 {
     InitializeComponent();
     ItemCode              = itemCode;
     _priceCompareManager  = priceCompareManager;
     lblItemName.Text      = itemName;
     nmItemCount.Value     = itemCount;
     btnRemove.MouseClick += removeItemFromCart;
 }
 public ComparerForm(ShoppingCart oldShoppingCart, List <Store> stores)
 {
     InitializeComponent();
     this.oldShoppingCart = oldShoppingCart;
     this.stores          = stores;
     manager = new PriceCompareManager();
     PopulateNewShoppingCart(oldShoppingCart, listViewOldShoppingCart, labelOldShoppingCart);
     PopulateStores();
 }
Exemple #5
0
 public PriceCompareForm(User user)
 {
     InitializeComponent();
     this.user = user;
     manager   = new PriceCompareManager();
     AddStoresToListView();
     if (user == null)
     {
         buttonSaveShopingCart.Visible = false;
         buttonShowLast.Visible        = false;
     }
 }
 public LoginRegisterForm()
 {
     InitializeComponent();
     manager = new PriceCompareManager();
 }
 public PriceCompareStoresForm(PriceCompareManager priceCompareManager, IEnumerable <ItemCart> items)
 {
     InitializeComponent();
     _priceCompareManager = priceCompareManager;
     _items = items;
 }
Exemple #8
0
 public MainWindow(User user)
 {
     InitializeComponent();
     _priceCompareManager = new PriceCompareManager(user);
 }
 public CartContent(PriceCompareManager priceCompareManager)
 {
     InitializeComponent();
     _priceCompareManager = priceCompareManager;
 }