Provides support for searching files in directories and their subdirectories. Search can be performed asynchronously.
示例#1
0
        private void AllocateObjects()
        {
            if(context == null) {
                context = new WipeContext();
            }

            if(searcher == null) {
                searcher = new FileSearcher();
            }

            if(startLock == null) {
                startLock = new object();
            }

            if(startEvent == null) {
                startEvent = new AutoResetEvent(false);
            }

            if(statistics == null) {
                statistics = new WipeStatistics();
            }

            if(_beforeWipeErrors == null) {
                _beforeWipeErrors = new List<WipeError>();
            }

            if(_afterWipeErrors == null) {
                _afterWipeErrors = new List<WipeError>();
            }

            if(_bridgeItems == null) {
                _bridgeItems = new List<IWipeObject>();
            }
        }
示例#2
0
 public SearchTool()
 {
     InitializeComponent();
     searcher = new FileSearcher();
     FilterBox.FileFilter = new FileFilter();
 }
示例#3
0
 public WipeSession()
 {
     guid = DefaultSessionGuid;
     items = new List<IWipeObject>();
     context = new WipeContext();
     options = new WipeOptions();
     searcher = new FileSearcher();
     startLock = new object();
     startEvent = new AutoResetEvent(false);
     statistics = new WipeStatistics();
     _beforeWipeErrors = new List<WipeError>();
     _afterWipeErrors = new List<WipeError>();
     _bridgeItems = new List<IWipeObject>();
     endStartCalled = true;
     status = SessionStatus.Stopped;
 }