This commit is contained in:
parent
52457bad6e
commit
bd0c9970ab
@ -436,10 +436,11 @@ namespace Volian.Controls.Library
|
|||||||
if (pi == null && tn.Parent!=null) cm.MenuItems.Add("Delete", new EventHandler(mi_Click));
|
if (pi == null && tn.Parent!=null) cm.MenuItems.Add("Delete", new EventHandler(mi_Click));
|
||||||
#endregion
|
#endregion
|
||||||
#region Menu_Properties
|
#region Menu_Properties
|
||||||
// Add delete to the menu unless at the very 'top' node or on a grouping (partinfo)
|
// Add Properties to the menu unless at the very 'top' node or on a grouping (partinfo)
|
||||||
// node (RNOs, Steps, Cautions, Notes)
|
// node (RNOs, Steps, Cautions, Notes) or at the step level.
|
||||||
PartInfo pia = tn.VEObject as PartInfo;
|
PartInfo pia = tn.VEObject as PartInfo;
|
||||||
if (pia == null) cm.MenuItems.Add("Properties...", new EventHandler(mi_Click));
|
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||||
|
if (pia == null && tn.VEObject as StepInfo == null) cm.MenuItems.Add("Properties...", new EventHandler(mi_Click));
|
||||||
#endregion
|
#endregion
|
||||||
cm.Show(this, new Point(e.X, e.Y));
|
cm.Show(this, new Point(e.X, e.Y));
|
||||||
}
|
}
|
||||||
@ -666,7 +667,7 @@ namespace Volian.Controls.Library
|
|||||||
iClip.itemId = ii.ItemID;
|
iClip.itemId = ii.ItemID;
|
||||||
iClip.cType = (int)PromsClipboardType.Copy;
|
iClip.cType = (int)PromsClipboardType.Copy;
|
||||||
DataObject myDO = new DataObject();
|
DataObject myDO = new DataObject();
|
||||||
myDO.SetText(ii.DisplayNumber);
|
myDO.SetText(ii.DisplayNumber==null||ii.DisplayNumber==""?" ":ii.DisplayNumber);
|
||||||
myDO.SetData("PromsClipboard", iClip);
|
myDO.SetData("PromsClipboard", iClip);
|
||||||
Clipboard.SetDataObject(myDO);
|
Clipboard.SetDataObject(myDO);
|
||||||
//Clipboard.SetData("PromsClipboard", iClip);
|
//Clipboard.SetData("PromsClipboard", iClip);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user