private void buttonMaid_Click(object sender, EventArgs e)
        {
            MaidService ms = new MaidService();

            this.Hide();
            ms.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["DBconnection"].ConnectionString);


            connection.Open();
            string PF = "Maid Service";

            string        sql1    = "SELECT *FROM Registrations WHERE gender= '" + comboBox1.Text + "' and Profession='" + PF + "' ";
            SqlCommand    command = new SqlCommand(sql1, connection);
            SqlDataReader reader  = command.ExecuteReader();



            if (reader.Read())
            {
                connection.Close();
                DataAcess ac = new DataAcess();

                string sql = "SELECT *FROM Registrations WHERE City='" + textBox1.Text + "'AND gender='" + comboBox1.Text + "'AND Profession='" + PF + "'";
                sqladp = new SqlDataAdapter(sql, connection);
                sqladp.Fill(data);
                pos = 0;
                displaytext(pos);
                connection.Close();
                ac.ConnectionClose();
            }
            else
            {
                MessageBox.Show("Sorry!There is no Mechanic as per your Requirement");
                MaidService maidService = new MaidService();

                this.Hide();
                maidService.Show();
                connection.Close();
            }
        }