From f0f719b9f60172db4bd8c026481776cca094e492 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 21 May 2009 13:28:25 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepItem.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index b974f37c..d287deec 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -194,7 +194,7 @@ namespace Volian.Controls.Library break; case 2: // Step // if Table then determine width and location based upon it's parent's location - if (_MyStepData.Type == "TABLE" || _MyStepData.ParentType == "TABLE") + if (_MyStepData.Type == "Table" || _MyStepData.ParentType == "Table") { _MyStepRTB.Font = _MyStepData.Font.WindowsFont; ItemWidth = (int)TableWidth(_MyStepRTB.Font, _MyItemInfo.MyContent.Text); @@ -973,6 +973,15 @@ namespace Volian.Controls.Library public void AddSiblingAfter() { ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter(""); + DoAddSiblingAfter(newItemInfo); + } + public void AddSiblingAfter(int? type) + { + ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("","",type); + DoAddSiblingAfter(newItemInfo); + } + private void DoAddSiblingAfter(ItemInfo newItemInfo) + { StepItem newStepItem = null; switch (_MyChildRelation) {