//Methods: public void Initialize() { SearchDriver search = new SearchDriver(); Drive.Clear(); foreach (DirectoryInfo d in search.SearchParrentDirectory()) { Drive.Add(d); } }
private void InitHierarchy()//Initialize Hierarchy collection { SearchDriver search = new SearchDriver(); ObservableCollection <HierarchyDrive> i = new ObservableCollection <HierarchyDrive>(); try { foreach (DirectoryInfo d in search.SearchParrentDirectory()) { i.Add(new HierarchyDrive(d)); } } catch { } Window.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { foreach (HierarchyDrive h in i) { DriveHier.Add(h); } }); }
public FilterProjectSteps(SearchDriver driver) { _projectDriver = driver; }
public SearchSteps(SearchDriver driver) { _searchDriver = driver; }
public FillterStep(SearchDriver driver) { _searchdriver = driver; }
public SearchSteps(SearchDriver searchDriver, SearchResultDriver searchResultDriver) { _searchDriver = searchDriver; _searchResultDriver = searchResultDriver; }
public void SearchDirectoryE()//search for name { if (Directory != null) { try { foreach (DirectoryInfo d in Directory.GetDirectories(Str)) { Explorer.Window.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { Explorer.Drive.Add(d); }); } foreach (FileInfo d in Directory.GetFiles(Str)) { Explorer.Window.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { Explorer.Drive.Add(d); }); } IEnumerable <DirectoryInfo> dir = Directory.EnumerateDirectories(); foreach (DirectoryInfo d in dir) { Directory = d; SearchDirectoryE(); } } catch { } } else { SearchDriver search = new SearchDriver(); foreach (DirectoryInfo dd in search.SearchParrentDirectory()) { Directory = dd; try { foreach (DirectoryInfo d in Directory.GetDirectories(Str)) { Explorer.Window.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { Explorer.Drive.Add(d); }); } foreach (FileInfo d in Directory.GetFiles(Str)) { Explorer.Window.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { Explorer.Drive.Add(d); }); } IEnumerable <DirectoryInfo> dir = Directory.EnumerateDirectories(); foreach (DirectoryInfo d in dir) { Directory = d; SearchDirectoryE(); } } catch { MessageBox.Show("sdggggggggggg"); } } } }
public ProjectFilterSteps(SearchDriver driver) { _searchDriver = driver; }
public ViewListOfProject(SearchDriver driver) { _projectDriver = driver; }