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.

This commit is contained in:
Rich 2018-02-21 22:07:31 +00:00
parent 9df7290679
commit f2d85dfd79

View File

@ -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;