dialog was returning a result of Cancel even though the result was set to OK.

This commit is contained in:
John Jenko 2012-02-22 15:08:30 +00:00
parent 641dbeb593
commit 5649e60d69

View File

@ -74,7 +74,6 @@ namespace VEPROMS
// Save whether we should display the default values on this property page
Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked;
Settings.Default.Save();
DialogResult = DialogResult.OK;
// save the type based on selection.
_SectionConfig.MySection.MyContent.Type = ((DocStyle)ppCmbxStyleSectionType.SelectedItem).Index + 10000;
@ -105,6 +104,7 @@ namespace VEPROMS
SaveText(ppSectNumberStpRTB);
SaveText(ppSectTitleStpRTB);
mySection.Dispose();
this.DialogResult = DialogResult.OK;
this.Close();
}
public void SaveText(StepRTB myStepRTB)