/// <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 }
/// <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 }