Esempio n. 1
0
 // Sets the productlist so that it's filled on startup. Then it refreshes the displayed products to fill the catalog.
 public void InstantiateProductList(DesignPanel dp)
 {
     this.productList  = Db.DatabaseController.productList;
     this.dp           = dp;
     catalogController = new CatalogController(catalogListPanel1, dp);
     catalogController.RefreshDisplayedItems();
 }
Esempio n. 2
0
 public RotatePanel(Product p, DesignPanel dp)
 {
     product       = p;
     this.dp       = dp;
     originalImage = p.image;
     count         = 0;
     rc            = new RotationController(this);
     InitializeComponent();
 }
Esempio n. 3
0
 public CatalogProductPanel(Product product, DesignPanel dp, CatalogController cc)
 {
     InitializeComponent();
     this.product = product;
     this.cc      = cc;
     dc           = new DragController(product, dp);
     // Sets productvalues.
     nameLabel.Text        = product.name;
     priceLabel.Text       = "Prijs: €" + product.price.ToString();
     descriptionLabel.Text = product.description;
     widthLabel.Text       = product.width.ToString() + " cm";
     heightLabel.Text      = product.height.ToString() + " cm";
     pictureBox1.Image     = product.GetImage();
 }