/// <summary>
        /// Initializes a new instance of the <see cref="DragAndDropOptionEditViewModel"/> class. 
        /// Constructor for initializing DragAndDropOptionEditViewModel.
        /// </summary>
        /// <param name="model">
        /// The DocumentEdit model.
        /// </param>
        /// <param name="parentViewModel">
        /// Parent model.
        /// </param>
        /// <param name="baseViewModel">
        /// The base View Model.
        /// </param>
        public DragAndDropOptionEditViewModel(APQPDragAndDropConfigurationEdit model, FieldDocumentEditViewModel parentViewModel, FieldListDocumentProcessViewSectionStepViewModel baseViewModel)
        {
            Parent = parentViewModel;
            BaseVM = baseViewModel;

            SetModel(model);
            
            this.nextSubfieldIsEnabled = Model.Subfields.Any();
            
        }
 /// <summary>
 /// Executes the remove document command.
 /// </summary>
 /// <param name="obj">The object.</param>
 private void ExecuteRemoveDocumentCommand(FieldDocumentEditViewModel obj)
 {
     if (SelectedField == obj) SelectedField = null;
     var updatedList = FieldDocumentList.NewItem();
     foreach (var model in Model.DocumentFieldsList)
     {
         if (!ReferenceEquals(model, obj.Model))
         {
             updatedList.Add(model);
         }
     }
     Model.DocumentFieldsList = updatedList;
     Fields.Remove(obj);
 }
 /// <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(FieldDocumentEditViewModel obj)
 {
     return true;
 }
        /// <summary>
        /// Executes the add field document command.
        /// </summary>
        /// <param name="obj">The object.</param>
        private void ExecuteAddFieldDocumentCommand(object obj)
        {
            var item = FieldDocumentList.NewChildItem();
            Model.DocumentFieldsList.Add(item);

            var documentEditViewModel = new FieldDocumentEditViewModel(item, this);
            if (documentEditViewModel.AvailableDocuments != null && documentEditViewModel.AvailableDocuments.Count > 0) item.DocumentGuid = documentEditViewModel.AvailableDocuments[0].Model.Guid;

            Fields.Add(documentEditViewModel);
        }