From 7df59aa377ab38964fdfb168f05b2aa8d409364d Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 22 Jan 2010 13:57:21 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepItem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index 7090a458..c1d69fce 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -1116,6 +1116,8 @@ namespace Volian.Controls.Library if(parentStepItem.MyRNOStepItems.Count == 0) parentStepItem.MyRNOStepItems = null; } + if (parentStepItem.MyAfterStepItems == null && parentStepItem.MyBeforeStepItems == null && parentStepItem.MyRNOStepItems == null) + parentStepItem.CanExpand = false; } //private void ShowSiblings(string title) //{ @@ -1204,11 +1206,13 @@ namespace Volian.Controls.Library } public void AddSiblingAfter(string text) { + MyStepRTB.SaveText(); ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter(text); DoAddSiblingAfter(newItemInfo); } public void AddSiblingAfter(int? type) { + MyStepRTB.SaveText(); ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("","",type); DoAddSiblingAfter(newItemInfo); }