dialog was returning a result of Cancel even though the result was set to OK.
This commit is contained in:
parent
641dbeb593
commit
5649e60d69
@ -74,7 +74,6 @@ namespace VEPROMS
|
|||||||
// Save whether we should display the default values on this property page
|
// Save whether we should display the default values on this property page
|
||||||
Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked;
|
Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked;
|
||||||
Settings.Default.Save();
|
Settings.Default.Save();
|
||||||
DialogResult = DialogResult.OK;
|
|
||||||
// save the type based on selection.
|
// save the type based on selection.
|
||||||
_SectionConfig.MySection.MyContent.Type = ((DocStyle)ppCmbxStyleSectionType.SelectedItem).Index + 10000;
|
_SectionConfig.MySection.MyContent.Type = ((DocStyle)ppCmbxStyleSectionType.SelectedItem).Index + 10000;
|
||||||
|
|
||||||
@ -105,6 +104,7 @@ namespace VEPROMS
|
|||||||
SaveText(ppSectNumberStpRTB);
|
SaveText(ppSectNumberStpRTB);
|
||||||
SaveText(ppSectTitleStpRTB);
|
SaveText(ppSectTitleStpRTB);
|
||||||
mySection.Dispose();
|
mySection.Dispose();
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
public void SaveText(StepRTB myStepRTB)
|
public void SaveText(StepRTB myStepRTB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user