diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index 135b2501..fc771cce 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -1399,9 +1399,19 @@ namespace Volian.Controls.Library } } } - public void AddMissingEnhancedStep(ItemInfo ii, int EnhType) + public void CreateLinksEnhancedSteps(ItemInfo srcII, ItemInfo enhII, int enhtype) { - // if the missing enhanced step is a cuation or note, check that parent HLS has the needed + srcII.DoCreateLinksEnhancedSteps(enhII, enhtype); + SetFocus(); + } + public void UnlinkEnhanced(ItemInfo enhII) + { + enhII.DoUnlinkEnhanced(enhII); + SetFocus(); + } + public ItemInfo AddMissingEnhancedStep(ItemInfo ii, int EnhType) + { + // if the missing enhanced step is a caution or note, check that parent HLS has the needed // enhanced step to insert the caution/note from. If not, do a message. if (ii.IsCaution || ii.IsNote) { @@ -1418,13 +1428,14 @@ namespace Volian.Controls.Library if (!canMakeMissingStep) { MessageBox.Show("Cannot create the missing enhanced step, the Enhanced Step for the High Level step must be created first."); - return; + return null; } } - ItemInfo newEnh = ii.DoAddMissingEnhancedSteps(EnhType); + ItemInfo newEnh = ii.DoAddMissingEnhancedItems(EnhType); // if enhanced items were created, then see if they need displayed: if (newEnh != null) AddAllEnhancedItemsToDisplay(MyItemInfo); SetFocus(); + return newEnh; } private string GetChangeId(ItemInfo iiDest) {