B2024-042 - Update TreeNodeReplace section when adding a node to working draft (remove unneeded code)
This commit is contained in:
parent
a1380dbb8a
commit
bf72a6bf78
@ -2547,6 +2547,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
newItemInfo.UpdateTransitionText();
|
newItemInfo.UpdateTransitionText();
|
||||||
newItemInfo.UpdateROText();
|
newItemInfo.UpdateROText();
|
||||||
newItemInfo.UpdatePastedStepTransitionText();
|
newItemInfo.UpdatePastedStepTransitionText();
|
||||||
|
|
||||||
// Add to tree
|
// Add to tree
|
||||||
if (newItemInfo.NextItem != null)
|
if (newItemInfo.NextItem != null)
|
||||||
{
|
{
|
||||||
@ -2564,11 +2565,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Create tree node for copied procedure when no other procedures exist in the folder
|
//Create tree node for copied procedure when no other procedures exist in the working draft (treeNodeReplace)
|
||||||
VETreeNode tn = null;
|
VETreeNode tn = null;
|
||||||
tn = new VETreeNode(newItemInfo);
|
tn = new VETreeNode(newItemInfo);
|
||||||
treeNodeReplace.Nodes.Add(tn);
|
treeNodeReplace.Nodes.Add(tn);
|
||||||
treeNodeReplace = tn;
|
|
||||||
}
|
}
|
||||||
return newItemInfo;
|
return newItemInfo;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user