public AllProduct()
 {
     Control = new Controller();
     InitializeComponent();
     button2.Visible    = false;
     AllProductInstance = this;
 }
        private void button1_Click_1(object sender, EventArgs e)
        {
            int result = Control.AddCategory(textBox1.Text);

            if (result > 0)
            {
                this.Close();
            }
            AllProduct.AllProductInstance.Close();
            AllProduct F = new AllProduct();

            F.Show();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            AllProduct F = new AllProduct();

            F.Show();
        }