/// <summary>
        /// Handler for click of edit button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //Note: when you click button it is sure that it is during edit only na dnot during installation
            frmGSAParams GSAParamForm = new frmGSAParams();

            //LoadConfigurationFromFileToForm(webConfigpath, GSAParamForm);
            GSAParamForm.LoadConfigurationFromFileToForm(WebConfigPath);

            DialogResult result = GSAParamForm.ShowDialog(); //show the dialog

            //if OK save it to file
            if (result == DialogResult.OK)
            {
                GSAConfiguration gc = GSAParamForm.PopulateGSAConfiguration(null);
                gc.SaveConfigurationsToFile(webConfigpath, false);//do not save the location of custom stylesheet
            }

            GSAParamForm.Dispose();//dispose off the form
        }
        private void button2_Click_1(object sender, EventArgs e)
        {
            if (isInstaller == true)
            {
                this.Visible = false; //hide the form
                                      //retain the form as it contains the information about all web applications

                frmGSAParams GSAParamForm = new frmGSAParams();
                DialogResult result       = GSAParamForm.ShowDialog();

                //check if OK was clicked
                if (result == DialogResult.OK)
                {
                    GSAConfiguration gc = GSAParamForm.PopulateGSAConfiguration(myBasePath);
                    SaveAllWebAppConfigurationsToFile(gc);//save the form
                }
            }

            this.DialogResult = DialogResult.OK; //indicates that OK is clicked
            this.Close();                        //close the form
        }
        private void button2_Click_1(object sender, EventArgs e)
        {
            if (isInstaller == true)
            {
                this.Visible = false;//hide the form
                                    //retain the form as it contains the information about all web applications

                frmGSAParams GSAParamForm = new frmGSAParams();
                DialogResult result = GSAParamForm.ShowDialog();

                //check if OK was clicked
                if(result == DialogResult.OK)
                {
                    GSAConfiguration gc = GSAParamForm.PopulateGSAConfiguration(myBasePath);
                    SaveAllWebAppConfigurationsToFile(gc);//save the form
                }
            }

            this.DialogResult = DialogResult.OK;//indicates that OK is clicked
            this.Close();//close the form
        }
        /// <summary>
        /// Handler for click of edit button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //Note: when you click button it is sure that it is during edit only na dnot during installation
            frmGSAParams GSAParamForm = new frmGSAParams();
            //LoadConfigurationFromFileToForm(webConfigpath, GSAParamForm);
            GSAParamForm.LoadConfigurationFromFileToForm(WebConfigPath);

            DialogResult result = GSAParamForm.ShowDialog(); //show the dialog

            //if OK save it to file
            if (result == DialogResult.OK)
            {
                GSAConfiguration gc = GSAParamForm.PopulateGSAConfiguration(null);
                gc.SaveConfigurationsToFile(webConfigpath,false);//do not save the location of custom stylesheet
            }

            GSAParamForm.Dispose();//dispose off the form
        }