This commit is contained in:
@@ -278,7 +278,7 @@ namespace VEPROMS
|
||||
/// Get the selected tree node's properties
|
||||
/// </summary>
|
||||
/// <param name="node">VETreeNode</param>
|
||||
void SetupNodes(VETreeNode node)
|
||||
bool SetupNodes(VETreeNode node)
|
||||
{
|
||||
if (_MyMRIList.Add(node.VEObject) != null)
|
||||
SetupMRU();
|
||||
@@ -303,6 +303,7 @@ namespace VEPROMS
|
||||
ItemInfo ii = node.VEObject as ItemInfo;
|
||||
if (ii != null) tc.OpenItem(ii);
|
||||
SetCaption(node);
|
||||
return (ii != null); // return if successful on opening item in step editor or word
|
||||
}
|
||||
// The following code is used to setup the user interface depending on what
|
||||
// is selected on the tree view (see vlnTreeView.cs)
|
||||
@@ -384,10 +385,12 @@ namespace VEPROMS
|
||||
/// <param name="e"></param>
|
||||
private void tmrTreeView_Tick(object sender, EventArgs e)
|
||||
{
|
||||
bool giveTvFocus = true;
|
||||
tmrTreeView.Enabled = false; // Timer has now fired
|
||||
VETreeNode tn = tv.SelectedNode as VETreeNode;
|
||||
if (tn != null) SetupNodes(tn);
|
||||
if (tn != null) giveTvFocus = !SetupNodes(tn);
|
||||
tv.Enabled = true;
|
||||
if (giveTvFocus) tv.Focus();
|
||||
}
|
||||
private void tv_BeforeExpand(object sender, TreeViewCancelEventArgs e)
|
||||
{
|
||||
@@ -773,7 +776,7 @@ namespace VEPROMS
|
||||
if (tc == null || tc.SelectedDisplayTabItem == null) return;
|
||||
if (SelectedStepTabPanel == null) return;
|
||||
displayTransition.MyRTB = SelectedStepTabPanel.MyStepPanel.SelectedStepItem.MyStepRTB;
|
||||
displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
|
||||
//displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
|
||||
displayTransition.CurTrans = null;
|
||||
}
|
||||
#endregion
|
||||
@@ -1009,7 +1012,7 @@ namespace VEPROMS
|
||||
infoPanel.Expanded = true;
|
||||
infoTabs.SelectedTab = infotabTransition;
|
||||
if (SelectedStepTabPanel == null) return;
|
||||
displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
|
||||
//displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
|
||||
displayTransition.MyRTB = SelectedStepTabPanel.MyStepPanel.SelectedStepItem.MyStepRTB;
|
||||
displayTransition.CurTrans = args.MyLinkText.MyTransitionInfo;
|
||||
}
|
||||
|
Reference in New Issue
Block a user