support paste into parent if steps are open in step editor
implement functionality behind the Paste menu items when pasting from a parent (proc pasted into docversion, section into proc, etc)
This commit is contained in:
@@ -442,6 +442,9 @@ namespace Volian.Controls.Library
|
||||
EditItem edtitm = pg.MyStepTabPanel.MyStepPanel._LookupEditItems[myItemInfo.ItemID];
|
||||
switch (pasteType)
|
||||
{
|
||||
case ItemInfo.EAddpingPart.Child:
|
||||
edtitm.PasteChild(copyStartID);
|
||||
break;
|
||||
case ItemInfo.EAddpingPart.Before:
|
||||
edtitm.PasteSiblingBefore(copyStartID);
|
||||
break;
|
||||
@@ -450,11 +453,11 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
case ItemInfo.EAddpingPart.Replace:
|
||||
EditItem ei = edtitm.PasteReplace(copyStartID);
|
||||
if (ei.MyItemInfo.ItemID != edtitm.MyItemInfo.ItemID)
|
||||
{
|
||||
edtitm.Dispose();
|
||||
MyCopyStep = ei.MyItemInfo;
|
||||
}
|
||||
if (ei.MyItemInfo.ItemID != edtitm.MyItemInfo.ItemID)
|
||||
{
|
||||
edtitm.Dispose();
|
||||
MyCopyStep = ei.MyItemInfo;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return false; ;
|
||||
|
Reference in New Issue
Block a user