示例#1
0
 /// <inheritdoc />
 public void UnExecute()
 {
     ElementToMove.Remove();
     if (IndexBeforeMove == ParentElementBeforeMove.Elements().Count())
     {
         ParentElementBeforeMove.Add(ElementToMove);
     }
     else
     {
         ParentElementBeforeMove.Elements().ToList()[IndexBeforeMove].AddBeforeSelf(ElementToMove);
     }
 }
示例#2
0
 /// <inheritdoc />
 public void UnExecute()
 {
     ElementToMove.Remove();
     PreviousElement.AddAfterSelf(ElementToMove);
 }
示例#3
0
 /// <inheritdoc />
 public void Execute()
 {
     ElementToMove.Remove();
     PreviousElement.Add(ElementToMove);
 }
示例#4
0
 /// <inheritdoc />
 public void Execute()
 {
     ElementToMove.Remove();
     ParentElementBeforeMove.AddAfterSelf(ElementToMove);
 }