private void button13_Click(object sender, EventArgs e)
        {
            if (comboBox2.Text != "" && textBox4.Text != "" && textBox3.Text != "")
            {
                d1.update(Convert.ToInt32(comboBox2.Text), textBox4.Text, textBox3.Text);
                MessageBox.Show("Data Updated");

                textBox3.Clear();
                textBox4.Clear();



                d1.select(comboBox1, comboBox2, comboBox3);
            }
            else
            {
                MessageBox.Show("Please Select An Id And Insert Data");
            }
        }
 private void Managedepartment_Load(object sender, EventArgs e)
 {
     d1 = new department();
     d1.select(comboBox1, comboBox2, comboBox3);
 }