private void Registerformbutton_Click(object sender, EventArgs e)
        {
            double            serviceCharge     = Convert.ToDouble(NameregistertextBox.Text);
            string            availableTime     = fromtimetextBox.Text + " " + fromtimecomboBox.Text + "-" + totimetextBox.Text + " " + totimecomboBox.Text;
            GeneralOperations generalOperations = new GeneralOperations();

            int result = generalOperations.AddServiceProviderDetails(spUserName, serviceCharge, availableTime);

            if (result > 0)
            {
                MessageBox.Show("Details Added successfully !!");
                DashboardforSP dashboardforSP = new DashboardforSP(spUserName);
                this.Hide();
                dashboardforSP.Show();
                //UpdateListOfProducts();
            }
            else
            {
                MessageBox.Show("Error in adding.");
            }
        }