/// <inheritdoc /> public void UnExecute() { ElementToMove.Remove(); if (IndexBeforeMove == ParentElementBeforeMove.Elements().Count()) { ParentElementBeforeMove.Add(ElementToMove); } else { ParentElementBeforeMove.Elements().ToList()[IndexBeforeMove].AddBeforeSelf(ElementToMove); } }
/// <inheritdoc /> public void UnExecute() { ElementToMove.Remove(); PreviousElement.AddAfterSelf(ElementToMove); }
/// <inheritdoc /> public void Execute() { ElementToMove.Remove(); PreviousElement.Add(ElementToMove); }
/// <inheritdoc /> public void Execute() { ElementToMove.Remove(); ParentElementBeforeMove.AddAfterSelf(ElementToMove); }