public adminPanel(Form1 f1) { InitializeComponent(); aap = new adminAddProduct(); aap.Location = new Point(200, 50); this.Controls.Add(aap); }
private void menu_AddProduct_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (!isNull) { disposeFunc(this.getFirstChild()); aap = new adminAddProduct(); aap.Location = new Point(200, 50); try { this.Controls.Add(aap); pageName.Text = "Add Product"; }catch (Exception ex) { adminAddProduct aap = new adminAddProduct(); aap.Location = new Point(200, 50); this.Controls.Add(aap); pageName.Text = "Add Product"; Console.WriteLine("Error : " + ex.Message); } } else { aap = new adminAddProduct(); aap.Location = new Point(200, 50); this.Controls.Add(aap); pageName.Text = "Add Product"; } }
public ProductDetail(Panel p1, int y1, Dictionary <string, string> item, adminAddProduct aap) { InitializeComponent(); p = p1; y = y1 + 60; this.aap = aap; }
private void setHotProducts(PictureBox pb, LinkLabel name, Label details, List <Product> lp, int i) { pb.Image = lp[i].getImage(); pb.SizeMode = PictureBoxSizeMode.StretchImage; name.Text = lp[i].getName(); adminAddProduct aap = new adminAddProduct(); Dictionary <string, string> dictionary1 = aap.deserializeString(choosenHp[0].getDetails()); aap.Dispose(); details.Text = generateDictionaryString(dictionary1); }