public UCAdd(MainForm mainForm, UCChooseMarkAndShowProduct uc) { InitializeComponent(); LoadMarks(); MainForm = mainForm; UC = uc; }
public Cart(string category, string ID, string name, string description, string price, Image image, string id_Марки, UCChooseMarkAndShowProduct uc) { InitializeComponent(); this.ID = ID; Category = category; Name = name; Description = description; Price = price; Image = image; ID_Марки = id_Марки; UC = uc; pictureBox1.Image = Image; lPrice.Text = Price; rtbDescription.Text = Description; UCDeleter deleter = new UCDeleter(); deleter.pictureBox1.Click += new System.EventHandler(deleterMethod); pictureBox1.Controls.Add(deleter); deleter.Location = new Point(160, 3); UCUpdate updater = new UCUpdate(); updater.pictureBox1.Click += new System.EventHandler(showUpdateControl); pictureBox1.Controls.Add(updater); updater.Location = new Point(163, 30); }
public MainForm(string userLogin) { InitializeComponent(); uc = new UCChooseMarkAndShowProduct(); this.UserLogin = userLogin; uc.lNameUser.Text = UserLogin; flowLayoutPanel1.Controls.Add(uc); }
public UCBacket(string UserLogin, MainForm mainForm, UCChooseMarkAndShowProduct uc) { InitializeComponent(); this.MainForm = mainForm; UC = uc; this.UserLogin = UserLogin; lUserName.Text = UserLogin; LoadBacket(UserLogin); }
public UCChange(UCChooseMarkAndShowProduct uc, string name, string description, string price, Image image, string ID_Марки, string category, string oldName) { InitializeComponent(); UC = uc; this.name = name; this.description = description; this.price = price; this.image = image; this.ID_Марки = ID_Марки; this.category = category; this.oldName = oldName; tbName.Text = name; tbPrice.Text = price; tbDescription.Text = description; pictureBox1.Image = image; cmbCategory.Text = category; }