This commit is contained in:
Kathy Ruffing 2010-01-22 13:57:21 +00:00
parent 9faa57882c
commit 7df59aa377

View File

@ -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);
}