/// <summary>
        /// Executes the add document command.
        /// </summary>
        /// <param name="obj">The object.</param>
        private void ExecuteAddDocumentCommand(object obj)
        {
            var item = DocumentList.NewChildItem();
            Model.DocumentsList.Add(item);

            var documentEditViewModel = new DocumentEditViewModel(item, this);

            Documents.Add(documentEditViewModel);
        }
 /// <summary>
 /// Executes the define document header command.
 /// </summary>
 /// <param name="obj">The object.</param>
 private void ExecuteDefineDocumentHeaderCommand(DocumentEditViewModel obj)
 {
    obj.ShowPopup();
 }
 /// <summary>
 /// Executes the remove document command.
 /// </summary>
 /// <param name="obj">The object.</param>
 private void ExecuteRemoveDocumentCommand(DocumentEditViewModel obj)
 {
     Model.DocumentsList.Remove(obj.Model);
     Documents.Remove(obj);
 }
 /// <summary>
 /// Determines whether this instance [can execute define document header command] the specified object.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns><c>true</c> if this instance [can execute define document header command] the specified object; otherwise, <c>false</c>.</returns>
 private static bool CanExecuteDefineDocumentHeaderCommand(DocumentEditViewModel obj)
 {
     return true;
 }
 /// <summary>
 /// Determines whether this instance [can execute remove document command] the specified object.
 /// </summary>
 /// <param name="obj">The object.</param>
 /// <returns><c>true</c> if this instance [can execute remove document command] the specified object; otherwise, <c>false</c>.</returns>
 private static bool CanExecuteRemoveDocumentCommand(DocumentEditViewModel obj)
 {
     return true;
 }