예제 #1
0
 public override void Execute()
 {
     mParent.Insert(mNode, mIndex);
     if (AllowRoleChangeAccordingToSurroundingSpecialNodes)
     {
         AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(mNode);
     }
     if (UpdateSelection)
     {
         View.Selection = mSelection;
     }
     TriggerProgressChanged();
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
        /// <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;
            }
        }
예제 #4
0
 public override void UnExecute()
 {
     mParent.Insert(mDeleted, mIndex);
     base.UnExecute();
 }