private void deletedepartmentsave_Click(object sender, EventArgs e)
        {
            if (deletedepartmentidcomboBox.Text != "")
            {
                dept.departmentId = deletedepartmentidcomboBox.Text;
                try
                {
                    ejad.deleteDepartmentJobAssign(deletedepartmentidcomboBox.Text);

                    pd.deleteDepartmentPayroll(deletedepartmentidcomboBox.Text);

                    if (deptdata.deleteDepartment(dept))
                    {
                        MessageBox.Show("Delete Successfully.");
                        DeleteAnDepartmentInfo_Load(sender, e);
                    }
                    else
                    {
                        MessageBox.Show("Delete Successfully.");
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            else
            {
                MessageBox.Show("Empty Input.");
            }
        }