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:
parent
9df7290679
commit
f2d85dfd79
@ -1908,8 +1908,12 @@ namespace VEPROMS
|
|||||||
ItemInfo ii = GetItemInfoFromString(str); // RHM20150506 Multiline ItemID TextBox
|
ItemInfo ii = GetItemInfoFromString(str); // RHM20150506 Multiline ItemID TextBox
|
||||||
if (ii != null)
|
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);
|
tv.AdjustTree(ii);
|
||||||
|
lblItemID.Text = string.Format("ItemID = {0}",ii.ItemID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
MessageBox.Show(string.Format("Looking for: {0}",str),"No item found");
|
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 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)
|
if (!tv.Focused && tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null)
|
||||||
tv.AdjustTree(tc.SelectedDisplayTabItem.SelectedItemInfo);
|
tv.AdjustTree(tc.SelectedDisplayTabItem.SelectedItemInfo);
|
||||||
|
|
||||||
VETreeNode vtn = tv.SelectedNode as VETreeNode;
|
VETreeNode vtn = tv.SelectedNode as VETreeNode;
|
||||||
if (vtn == null) return;
|
if (vtn == null) return;
|
||||||
StepInfo stpinf = vtn.VEObject as StepInfo;
|
StepInfo stpinf = vtn.VEObject as StepInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user