public void Execute()
 {
     foreach (IWorldObject obj in list)
     {
         if (!(obj is IObjectCutCopy))
         {
             cutList.Clear();
             return;
         }
         else
         {
             cutList.Add(obj as IObjectCutCopy);
         }
     }
     clip.Clear();
     clip.State = ClipboardState.cut;
     foreach (IObjectCutCopy obj in cutList)
     {
         parent.Add(obj.Parent);
         clip.Parents.Add(obj.Parent);
         obj.Parent.Remove(obj);
         obj.Parent = clip;
         clip.Add(obj);
     }
 }
Exemple #2
0
 public void Execute()
 {
     foreach (IWorldObject obj in list)
     {
         if (!(obj is IObjectCutCopy))
         {
             return;
         }
         else
         {
             copyList.Add(obj as IObjectCutCopy);
         }
     }
     clip.Clear();
     clip.State = ClipboardState.copy;
     foreach (IObjectCutCopy obj in copyList)
     {
         parents.Add(obj.Parent);
         clip.Parents.Add(obj.Parent);
         obj.Clone(clip);
     }
 }