Example #1
0
        public WorkWithDirectory(WhatToSearch whatToSearch)
        {
            this._foundedFiles    = new List <string>();
            this._foundedFolders  = new List <string>();
            this._pathesException = new List <string>();

            this._whatToSearch = whatToSearch;
        }
        public SearcherFileAndFolders(string fileName, string[] paths, WhatToSearch whatToSearch)
        {
            this._fileName      = ConvertToGegularExpresion.Convert(fileName);
            this._searcherPaths = paths;
            this._whatToSearch  = whatToSearch;

            this._foundedPathesFiles   = new List <string>(LIST_LENGTH_FILEPATHES);
            this._foundedPathesFolders = new List <string>(LIST_LENGTH_FOLDERPATHES);
            this._pathesCantCheck      = new List <string>(LIST_LENGTH_PATHESCANTCHECK);
        }
Example #3
0
        public MainForm()
        {
            InitializeComponent();

            this._hideFormAsync += this.Hide;
            this._showFormAsync += this.Show;

            this._logicalDrives = Helpers.FileSystemInfo.GetAllDrives;

            this._typePathesSearching = TypePathesSearching.LogicDrives;
            this._whatToSearch        = WhatToSearch.Files | WhatToSearch.Folders;

            SettingPanelCheckBox();
        }
Example #4
0
 private void SetTypeOfSearching()
 {
     if (this.chbxSearchFiles.Checked && this.chbxSearchFolders.Checked)
     {
         this._whatToSearch = WhatToSearch.Files | WhatToSearch.Folders;
     }
     else if (this.chbxSearchFiles.Checked && !this.chbxSearchFolders.Checked)
     {
         this._whatToSearch = WhatToSearch.Files;
     }
     else if (!this.chbxSearchFiles.Checked && this.chbxSearchFolders.Checked)
     {
         this._whatToSearch = WhatToSearch.Folders;
     }
     else
     {
         this._whatToSearch = 0;
     }
 }