B2012-365 Fixed the default get of the Auto Indent option to return No if it is not set in the config

B2012-365  Fixed, the Auto Indent option enabling
B2012-369 Fixed the lack of displaying a new subsection, after entering a new High level step
This commit is contained in:
2012-12-11 19:41:51 +00:00
parent 74e11c4025
commit d42972a389
3 changed files with 16 additions and 4 deletions

View File

@@ -364,6 +364,16 @@ namespace Volian.Controls.Library
// The following line expands the items needed to display SelectedItemInfo
ExpandAsNeeded(SelectedItemInfo);
}
public void Reset(ItemInfo myItemInfo)
{
ItemInfo parent = myItemInfo.ActiveParent as ItemInfo;
if (parent != null) ItemInfo.ResetParts(parent.ItemID); // Force data to reload
else ItemInfo.ResetParts(myItemInfo.ItemID);
// The following line actually reloads the procedure item
MyProcedureItemInfo = MyProcedureItemInfo; // see get/set above. - Load Procedure and Sections
// The following line expands the items needed to display SelectedItemInfo
ExpandAsNeeded(myItemInfo);
}
/// <summary>
/// Currently selected StepRTB
/// </summary>
@@ -392,7 +402,8 @@ namespace Volian.Controls.Library
{
ExpandAsNeeded(itemInfo);
if (_SelectedItemInfo == null) _SelectedItemInfo = itemInfo;
if (!_LookupEditItems.ContainsKey(itemInfo.ItemID)) Reset();
//if (!_LookupEditItems.ContainsKey(itemInfo.ItemID)) Reset();
if (!_LookupEditItems.ContainsKey(itemInfo.ItemID)) Reset(itemInfo);
if (!_LookupEditItems.ContainsKey(itemInfo.ItemID)) return null;
return _LookupEditItems[itemInfo.ItemID];
}