コード例 #1
0
 public UserShoppingCartForm(User user)
 {
     InitializeComponent();
     this.user = user;
     manager   = new PriceCompareManager();
     PopulateUserShoopingCart();
 }
コード例 #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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ComparerForm(ShoppingCart oldShoppingCart, List <Store> stores)
 {
     InitializeComponent();
     this.oldShoppingCart = oldShoppingCart;
     this.stores          = stores;
     manager = new PriceCompareManager();
     PopulateNewShoppingCart(oldShoppingCart, listViewOldShoppingCart, labelOldShoppingCart);
     PopulateStores();
 }
コード例 #5
0
 public PriceCompareForm(User user)
 {
     InitializeComponent();
     this.user = user;
     manager   = new PriceCompareManager();
     AddStoresToListView();
     if (user == null)
     {
         buttonSaveShopingCart.Visible = false;
         buttonShowLast.Visible        = false;
     }
 }
コード例 #6
0
 public LoginRegisterForm()
 {
     InitializeComponent();
     manager = new PriceCompareManager();
 }
コード例 #7
0
 public PriceCompareStoresForm(PriceCompareManager priceCompareManager, IEnumerable <ItemCart> items)
 {
     InitializeComponent();
     _priceCompareManager = priceCompareManager;
     _items = items;
 }
コード例 #8
0
 public MainWindow(User user)
 {
     InitializeComponent();
     _priceCompareManager = new PriceCompareManager(user);
 }
コード例 #9
0
 public CartContent(PriceCompareManager priceCompareManager)
 {
     InitializeComponent();
     _priceCompareManager = priceCompareManager;
 }