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