public override void Execute() { mParent.Insert(mNode, mIndex); if (AllowRoleChangeAccordingToSurroundingSpecialNodes) { AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(mNode); } if (UpdateSelection) { View.Selection = mSelection; } TriggerProgressChanged(); }
public override void Execute() { mParent.Insert(mCopy, mIndex); if (AllowRoleChangeAccordingToSurroundingSpecialNodes) { AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(mCopy); } if (UpdateSelection) { View.Selection = mSelection; } if (mParent != null && mParent is SectionNode) { View.UpdateBlocksLabelInStrip((SectionNode)mParent); } }
/// <summary> /// Add or readd the new section node then restore this as the selection. /// </summary> public override void Execute() { mParent.Insert(mNode, mIndex); if (m_SectionName != null && m_SectionName.Length > 0) { View.RenameSectionNode(mNode, m_SectionName); } if (mRedo) { View.Selection = new NodeSelection(mNode, mControl); } else { mRedo = true; } }
public override void UnExecute() { mParent.Insert(mDeleted, mIndex); base.UnExecute(); }