Exemple #1
0
 public DirectoryEntryController(DirectoryEntry doc)
 {
     _doc               = doc ?? throw new ArgumentNullException(nameof(doc));
     _sourceDirectory   = doc.SourceDirectory;
     _destinationFolder = doc.DestinationDirectory;
     _maxDepthOfSymbolicLinksToFollow = doc.MaxDepthOfSymbolicLinksToFollow;
     _filterItems             = doc.ExcludedFiles;
     _filterItemsController   = new FilterItemCollectionController(_filterItems);
     CmdChooseSourceDirectory = new RelayCommand(EhChooseSourceDirectory);
 }
        public FilterItemCollectionController(FilterItemCollection doc)
        {
            Doc         = doc ?? throw new ArgumentNullException(nameof(doc));
            _filterPath = string.Empty;

            CmdAddExcludedPath = new RelayCommand(EhAddExcludedPath);
            CmdMoveUp          = new RelayCommand(EhMoveUp);
            CmdMoveDown        = new RelayCommand(EhMoveDown);
            CmdDelete          = new RelayCommand(EhDelete);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="EntityFilteringService" /> class.
        /// </summary>
        /// <param name="defaultService"><see cref="ICodeWriterFilterService" /> instance.</param>
        public EntityFilteringService(ICodeWriterFilterService defaultService)
        {
            this.DefaultService = defaultService;

            this._collection = FilterItemCollection.CreateInstance();
        }