Added code to display hour glass when copying and pasting items
This commit is contained in:
parent
f9de5305f2
commit
d7a7c13b72
@ -1067,6 +1067,7 @@ namespace Volian.Controls.Library
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ItemInfo iiPasteHere = tn.VEObject as ItemInfo;
|
ItemInfo iiPasteHere = tn.VEObject as ItemInfo;
|
||||||
|
if (iiPasteHere == null) return;
|
||||||
bool okToReplace = iiClipboard.ItemID != iiPasteHere.ItemID;
|
bool okToReplace = iiClipboard.ItemID != iiPasteHere.ItemID;
|
||||||
if (iiPasteHere != null)
|
if (iiPasteHere != null)
|
||||||
{
|
{
|
||||||
@ -1467,12 +1468,14 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
ItemInfo iiPaste = tn.VEObject as ItemInfo;
|
ItemInfo iiPaste = tn.VEObject as ItemInfo;
|
||||||
if (iiPaste == null) return;
|
if (iiPaste == null) return;
|
||||||
|
this.Cursor = Cursors.WaitCursor;
|
||||||
if (p.IndexOf("Before") > -1)
|
if (p.IndexOf("Before") > -1)
|
||||||
PasteBeforeOrAfter(MenuSelections.StepBefore, tn, iiClipboard.ItemID);
|
PasteBeforeOrAfter(MenuSelections.StepBefore, tn, iiClipboard.ItemID);
|
||||||
else if (p.IndexOf("After") > -1)
|
else if (p.IndexOf("After") > -1)
|
||||||
PasteBeforeOrAfter(MenuSelections.StepAfter, tn, iiClipboard.ItemID);
|
PasteBeforeOrAfter(MenuSelections.StepAfter, tn, iiClipboard.ItemID);
|
||||||
else if (p.IndexOf("Replace") > -1)
|
else if (p.IndexOf("Replace") > -1)
|
||||||
PasteReplace(tn, iiClipboard.ItemID);
|
PasteReplace(tn, iiClipboard.ItemID);
|
||||||
|
this.Cursor = Cursors.Default;
|
||||||
}
|
}
|
||||||
private void PasteBeforeOrAfter(MenuSelections newtype, VETreeNode tn, int copyStartID)
|
private void PasteBeforeOrAfter(MenuSelections newtype, VETreeNode tn, int copyStartID)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user