B2017-101: Supplemental Information Steps: Allow copy step

This commit is contained in:
Kathy Ruffing 2017-05-26 12:29:42 +00:00
parent 738089548c
commit 2388bc87a4

View File

@ -61,8 +61,9 @@ namespace Volian.Controls.Library
StepTabRibbon str = MyStepPanel.MyStepTabPanel.MyStepTabRibbon;
str.SiblingsButtonsEnabled = allow;
str.InsertButtonsEnabled = allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection || MyItemInfo.IsRNOPart || MyItemInfo.IsSupInfoPart);
// do special case for cpystep button: cannot copy an enhanced step:
// do special case for cpystep button: cannot copy an enhanced step and can copy a supinfo
if (MyItemInfo.IsEnhancedStep) str.SetCopyStepButton(false);
if (MyItemInfo.IsSupInfoPart) str.SetCopyStepButton(allow);
}
public EditItem(IContainer container)