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); } } }
private bool CanExecuteSubParagraphRemoveCommand(SubParagraph arg) { return(true); }