/// <summary>
 /// Creates the section vm.
 /// </summary>
 /// <param name="section">The section.</param>
 /// <returns>ProcessSectionViewModel.</returns>
 public ProcessSectionViewModel CreateSectionVM(ISectionEdit section)
 {
     var sectionVM = new ProcessSectionViewModel(section);
     //DeploymentService.Container.ComposeParts(sectionVM);
     DeploymentService.Container.SatisfyImportsOnce(sectionVM);
     return sectionVM;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProcessSectionViewModel"/> class.
        /// </summary>
        /// <param name="section">The section.</param>
        public ProcessSectionViewModel(ISectionEdit section)
        {
            this._sectionEdit = section;
            FieldList = new ObservableCollection<ProcessFieldViewModel>();
            Fields = new ObservableCollection<ExpandableStepPropBag>();

            _showPaperclips = true;

            _process = section.GetParent<ProcessEdit>();
            this._simpleProcess = _process != null && _process.SimpleProcess;
            IsSystem = _process != null && _process.IsSystem;
        }