private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection dc = new databaseConnection();

            dc.open();
            if (dc.insertdata(int.Parse(textBox2.Text), textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text))
            {
                menu obj = new menu(textBox2.Text);
                obj.Show();
            }
            dc.close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            databaseConnection dc = new databaseConnection();

            dc.open();
            try
            {
                if (dc.insertdata(int.Parse(textBox2.Text), textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text))
                {
                    menu obj = new menu(textBox2.Text);
                    obj.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            dc.close();
        }