From f2d85dfd793e9863663bce691f9481f29a5d12ee Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 21 Feb 2018 22:07:31 +0000 Subject: [PATCH] B20180221 - Allow the user to open a Property Grid view of the current step from the Commandline arguments. Allow the user to print a procedure based upon the ItemID in the commandline. This is internal only. --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 64fba047..1ef86021 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -1908,8 +1908,12 @@ namespace VEPROMS ItemInfo ii = GetItemInfoFromString(str); // RHM20150506 Multiline ItemID TextBox if (ii != null) { - tc.OpenItem(ii); + DisplayTabItem dti = tc.OpenItem(ii);// B2018-035 Allow procedure to be printed and property grid to be opened + SelectedStepTabPanel = dti.MyStepTabPanel; + tc.SelectedDisplayTabItem = dti; + dti.SelectedItemInfo = ii; tv.AdjustTree(ii); + lblItemID.Text = string.Format("ItemID = {0}",ii.ItemID); } else MessageBox.Show(string.Format("Looking for: {0}",str),"No item found"); @@ -3465,6 +3469,7 @@ namespace VEPROMS // if focus is in the step editor, position in the tree view to match the location in the step editor if (!tv.Focused && tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null) tv.AdjustTree(tc.SelectedDisplayTabItem.SelectedItemInfo); + VETreeNode vtn = tv.SelectedNode as VETreeNode; if (vtn == null) return; StepInfo stpinf = vtn.VEObject as StepInfo;