Пример #1
0
 public UCAdd(MainForm mainForm, UCChooseMarkAndShowProduct uc)
 {
     InitializeComponent();
     LoadMarks();
     MainForm = mainForm;
     UC       = uc;
 }
Пример #2
0
        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);
        }
Пример #3
0
 public MainForm(string userLogin)
 {
     InitializeComponent();
     uc                = new UCChooseMarkAndShowProduct();
     this.UserLogin    = userLogin;
     uc.lNameUser.Text = UserLogin;
     flowLayoutPanel1.Controls.Add(uc);
 }
Пример #4
0
        public UCBacket(string UserLogin, MainForm mainForm, UCChooseMarkAndShowProduct uc)
        {
            InitializeComponent();
            this.MainForm = mainForm;
            UC            = uc;

            this.UserLogin = UserLogin;
            lUserName.Text = UserLogin;


            LoadBacket(UserLogin);
        }
Пример #5
0
        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;
        }