This commit is contained in:
Kathy Ruffing 2010-10-20 16:56:44 +00:00
parent 52457bad6e
commit bd0c9970ab

View File

@ -436,10 +436,11 @@ namespace Volian.Controls.Library
if (pi == null && tn.Parent!=null) cm.MenuItems.Add("Delete", new EventHandler(mi_Click));
#endregion
#region Menu_Properties
// Add delete to the menu unless at the very 'top' node or on a grouping (partinfo)
// node (RNOs, Steps, Cautions, Notes)
// Add Properties to the menu unless at the very 'top' node or on a grouping (partinfo)
// node (RNOs, Steps, Cautions, Notes) or at the step level.
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
cm.Show(this, new Point(e.X, e.Y));
}
@ -666,7 +667,7 @@ namespace Volian.Controls.Library
iClip.itemId = ii.ItemID;
iClip.cType = (int)PromsClipboardType.Copy;
DataObject myDO = new DataObject();
myDO.SetText(ii.DisplayNumber);
myDO.SetText(ii.DisplayNumber==null||ii.DisplayNumber==""?" ":ii.DisplayNumber);
myDO.SetData("PromsClipboard", iClip);
Clipboard.SetDataObject(myDO);
//Clipboard.SetData("PromsClipboard", iClip);