Copy all fields from Library Document when converting a Library Document to a Stand-alone Document
Added code to update the Procedure Panel when a Word Section is added. Created a method to find a ProcedureDisplayTabItem for a specific item Added code to Reset the Tab when a Section's Number is changed. Added code to Reset a Procedures Parts when a Panel is Reset Added an event for a Node being added.
This commit is contained in:
@@ -560,6 +560,15 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public DisplayTabItem GetProcDisplayTabItem(ItemInfo myItemInfo)
|
||||
{
|
||||
ItemInfo proc = myItemInfo.MyProcedure; // Find procedure Item
|
||||
string key = "Item - " + proc.ItemID.ToString();
|
||||
DisplayTabItem pg = null;
|
||||
if (_MyDisplayTabItems.ContainsKey(key)) // If procedure page open use it
|
||||
return _MyDisplayTabItems[key];
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// This opens a Step page based upon a ItemInfo.
|
||||
///
|
||||
|
@@ -168,6 +168,7 @@ namespace Volian.Controls.Library
|
||||
// Update the text to reflect the content change
|
||||
MyStepRTB.MyItemInfo.RefreshItemAnnotations();
|
||||
MyStepRTB.MyItemInfo=MyStepRTB.MyItemInfo; // Reset Text
|
||||
TabFormat = null; // Reset Tab
|
||||
SetExpandAndExpander(MyItemInfo);
|
||||
// TODO: Need code to update tabs ? not sure what this is - maybe for
|
||||
// transitions?
|
||||
|
@@ -321,6 +321,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
ItemInfo parent = SelectedItemInfo.ActiveParent as ItemInfo;
|
||||
if (parent != null) ItemInfo.ResetParts(parent.ItemID); // Force data to reload
|
||||
else ItemInfo.ResetParts(SelectedItemInfo.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
|
||||
|
@@ -302,6 +302,11 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (NodeSelect != null) NodeSelect(sender, args);
|
||||
}
|
||||
public event vlnTreeViewEvent NodeNew;
|
||||
private void OnNodeNew(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
if (NodeNew != null) NodeNew(sender, args);
|
||||
}
|
||||
public event vlnTreeViewEvent NodeSelectionChange;
|
||||
private void OnNodeSelectionChange(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
@@ -935,8 +940,7 @@ namespace Volian.Controls.Library
|
||||
if (tn != null)
|
||||
{
|
||||
SelectedNode = tn;
|
||||
OnNodeSelect(this, new vlnTreeEventArgs(SelectedNode));
|
||||
|
||||
OnNodeNew(this, new vlnTreeEventArgs(SelectedNode));
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user