C2018-029 The tree panel in child windows (separate windows) will now display the name of the procedure set that is in that child window

This commit is contained in:
John Jenko 2018-09-11 19:45:14 +00:00
parent 8cdc686f11
commit f95ac3dbdd

View File

@ -1264,7 +1264,10 @@ namespace VEPROMS
private string getProcedurePanelHeading()
{
VETreeNode jj_vetn = (VETreeNode)tv.Nodes[0]; // the VEPROMS tree node
return ((FolderConfig)jj_vetn.VEObject.MyConfig).Title; // get the panel heading
if (!PROMSWindowForms.ContainsKey(tc.VersionID)) //C2018-029 check if we are in a child window
return ((FolderConfig)jj_vetn.VEObject.MyConfig).Title; // get the panel heading
else
return jj_vetn.Text; // C2018-029 return the child window's procedure set name
}
private int getTimeout()
{