Exemple #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            this.Hide();
            Manage_Category mc = new Manage_Category(uu);

            mc.Show();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            c.InsertCategory(textBox3.Text);
            MessageBox.Show("Category_Inserted Successfull");
            this.Hide();
            Manage_Category mc = new Manage_Category(uu);

            mc.Show();
        }
Exemple #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            c.UpdateCategory(textBox1.Text, textBox2.Text);
            MessageBox.Show("Category Updated");
            this.Hide();
            Manage_Category mc = new Manage_Category(uu);

            mc.Show();
        }
Exemple #4
0
        private void button10_Click(object sender, EventArgs e)
        {
            sliderpanel.Height = button10.Height;
            sliderpanel.Top    = button10.Top;
            this.Hide();
            Manage_Category mc = new Manage_Category(uu);

            mc.Show();
        }
Exemple #5
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "" || textBox2.Text == "")
     {
         MessageBox.Show("You can't Perform This Operation with an Empty Cell");
     }
     else
     {
         bool res = c.DeleteCategory(textBox1.Text, textBox2.Text);
         if (res == true)
         {
             MessageBox.Show("Deleted Successfully");
             this.Hide();
             Manage_Category mc = new Manage_Category(uu);
             mc.Show();
         }
         else
         {
             MessageBox.Show("This Category Id has a product assigned..Cannot perform this operation");
         }
     }
 }