Пример #1
0
        private void addprod_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Add_product add = new Add_product();

            add.Show();
            add.previousform = this;
            this.Hide();
        }
Пример #2
0
        private void addBtn_Click(object sender, EventArgs e)
        {
            Add_product add = new Add_product();

            add.Show();
            CaPY_SAD.Add_product.form = 1;
            add.previousform          = this;
            this.Hide();
        }
Пример #3
0
 // Shows Product List
 private void prodTxt_MouseClick(object sender, MouseEventArgs e)
 {
     if (dtgvAvailProds.Rows.Count < 1)
     {
         MessageBox.Show("No products Available!", "No products available", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         Add_product add = new Add_product();
         add.Show();
         add.previousform = this;
         this.Hide();
     }
     else
     {
         ShowProducts();
         prodpanel.Size     = new Size(432, 376);
         prodpanel.Location = new Point(614, 320);
         prodpanel.Visible  = true;
         prodpanel.Enabled  = true;
     }
 }