C2020-028: On Transition Panel, disable/uncheck ‘Include Step Number’ if on WORD section

This commit is contained in:
Kathy Ruffing 2020-07-20 15:50:54 +00:00
parent 2c488befba
commit ae93427f2b

View File

@ -908,6 +908,8 @@ namespace Volian.Controls.Library
{
tvTran.Nodes.Clear();
tvTran.Enabled = false;
cbIncStepNum.Enabled = false; // C2020-028: disable/uncheck 'Include Step Number' if on Word doc
cbIncStepNum.Checked = false;
// Set Save & Cancel enabling, depending on whether section can be an endpoint.
E_TransUI etm = (E_TransUI)_CurItemFrom.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[_TranFmtIndx].TransUI;
SaveCancelEnabling();
@ -917,6 +919,8 @@ namespace Volian.Controls.Library
_InitializingTrans = true; // just initializing now, don't set any ranges, etc.
tvTranFillIn((secitm.Steps == null || secitm.Steps.Count == 0) ? null : secitm.Steps[0]);
tvTran.Enabled = true;
cbIncStepNum.Enabled = true;
cbIncStepNum.Checked = true;
// if doing a 'new' range, no node is selected in tree. Without this, the first node in the
// tree was the selected node which was throwing off the logic for defining the _RangeNode1
// and _RangeNode2