Ejemplo n.º 1
0
 private void ExecuteSubParagraphRemoveCommand(SubParagraph subParagraph)
 {
     if (this.SelectedSection is ParagraphSection)
     {
         int removeIndex = (this.SelectedSection as ParagraphSection).SubParagraphList.IndexOf(subParagraph);
         if (removeIndex >= 0)
         {
             (this.SelectedSection as ParagraphSection).SubParagraphList.RemoveAt(removeIndex);
         }
     }
 }
Ejemplo n.º 2
0
 private bool CanExecuteSubParagraphRemoveCommand(SubParagraph arg)
 {
     return(true);
 }