Added code to locate the currently selected StepItem in the TreeView

This commit is contained in:
Rich
2010-01-13 21:32:23 +00:00
parent a31cfa31a8
commit 61c9d01516
2 changed files with 54 additions and 5 deletions

View File

@@ -323,11 +323,19 @@ namespace VEPROMS
// Check to make sure that a node has been selected and
// that the mouse is within the bounds of the node.
if (tn != null && tn.Bounds.Left < newPoint.X)
{
{
tv.SelectedNode = tn;
tv.Enabled = false;
tmrTreeView.Enabled = true;
}
tv.Enabled = false;
tmrTreeView.Enabled = true;
}
else
{
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null)
{
tv.AdjustTree(tc.SelectedDisplayTabItem.SelectedItemInfo);
tc.SelectedDisplayTabItem.Focus();
}
}
}
}
/// <summary>