If an auto Table of Contents page, initialize Word/Step section boxes and flags to Word section.

This commit is contained in:
Kathy Ruffing 2014-04-16 15:16:51 +00:00
parent a26d292c6a
commit 6b4f9a4ac3

View File

@ -60,6 +60,15 @@ namespace VEPROMS
// if creating a new section, enable the StepSect and WordSect radio buttons
rbStepSect.Enabled = rbWordSect.Enabled = !(ii.HasWordContent || ii.HasStepContent);
// if this is an auto table of contents (mydocstyle == null if new section, so must check for that first)
if (ii.IsAutoTOCSection)
{
rbWordSect.Checked = true;
rbStepSect.Enabled = false;
rbWordSect.Enabled = false;
_isStepSection = false;
}
// if this has already been set to be a step section, i.e. HasStepContent, disable the libdoc tab
// also disable if there is no word content yet - the user may want to change from step type to
// word type, as long as there is no content yet.