Fixed logic to setup the transition panel
Fixed the code to open enhanced document windows so that they are not always on top. If a transition to a procedure is created, or exists, it cannot be edited. John Zimmerman of Ginna reported this. The transition can be selected and deleted if the transition panel has not been opened. If the transition panel has been opened, then the code will crash as soon as the transition is selected. Thhis change fixes the code so that it will not crash.
This commit is contained in:
1 parent
e7b0d79c25
commit
3519bec6aa
2 files changed
+31
-18
No files matched your search
@@ -1247,7 +1247,8 @@ namespace VEPROMS
|
||||
frm.MySessionInfo = MySessionInfo;
|
||||
tc.dicEnhancedDocuments.Add(args.MyItemInfo.MyProcedure.MyDocVersion, frm);
|
||||
frm.FormClosed += frm_FormClosed;
|
||||
frm.Show(this);
|
||||
//frm.Show(this); When this was specified the child form displayed on top of the parent form.
|
||||
frm.Show(); // With this removed either form can be on top (user selectable - currently active form on top)
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2454,7 +2455,8 @@ namespace VEPROMS
|
||||
if (SelectedStepTabPanel == null) return;
|
||||
displayTransition.MyRTB = SelectedStepTabPanel.MyStepPanel.SelectedEditItem.MyStepRTB;
|
||||
//displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
|
||||
displayTransition.CurTrans = null;
|
||||
// RHM - The follwing line was reseting the settings on the transtion panel to "not" show the currently selected transition.
|
||||
//displayTransition.CurTrans = null;
|
||||
}
|
||||
#endregion
|
||||
#region InfoTabLibDocs
|
||||
|
||||
Reference in new issue
Block a user