B2017-101: Supplemental Information Steps: Allow copy step
This commit is contained in:
@@ -61,8 +61,9 @@ namespace Volian.Controls.Library
|
|||||||
StepTabRibbon str = MyStepPanel.MyStepTabPanel.MyStepTabRibbon;
|
StepTabRibbon str = MyStepPanel.MyStepTabPanel.MyStepTabRibbon;
|
||||||
str.SiblingsButtonsEnabled = allow;
|
str.SiblingsButtonsEnabled = allow;
|
||||||
str.InsertButtonsEnabled = allow && !(MyItemInfo.IsProcedure || MyItemInfo.IsSection || MyItemInfo.IsRNOPart || MyItemInfo.IsSupInfoPart);
|
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.IsEnhancedStep) str.SetCopyStepButton(false);
|
||||||
|
if (MyItemInfo.IsSupInfoPart) str.SetCopyStepButton(allow);
|
||||||
}
|
}
|
||||||
|
|
||||||
public EditItem(IContainer container)
|
public EditItem(IContainer container)
|
||||||
|
Reference in New Issue
Block a user