Added code to locate the currently selected StepItem in the TreeView
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user