public void SetPath(int side, string value, PleaseWait progress) { if (_Path[side] == value) { return; } _Path[side] = value; if (watcher[side] != null) { watcher[side].Dispose(); } if (_Path[side] != null && Directory.Exists(_Path[side])) { watcher[side] = new DirectoryTreeWatcher(files, side, _Path[side], Dispatcher, update, fullTextExtensions, progress); } }
public void SetPath(int side, string value, PleaseWait progress) { if (_Path[side] == value) return; _Path[side] = value; if (watcher[side] != null) watcher[side].Dispose(); if (_Path[side] != null && Directory.Exists(_Path[side])) watcher[side] = new DirectoryTreeWatcher(files, side, _Path[side], Dispatcher, update, fullTextExtensions, progress); }