public AppViewModel() { DBSearch = new a7DbSearchEngine(); HierarchyExplorer = new a7HierarchyExplorer(); FileSearch = new a7FileSearch(); FileSearch.DBSearch = DBSearch; }
void fileSearch_AcutalizedWork(object sender, a7FileSearch.FileSearchEventArgs e) { this.tbProgress.Dispatcher.Invoke( new Action( () => { this.tbProgress.Text = e.Message + ": " + "Value:" + e.ActualSearchedValue + " (" + e.SearchedValuesFinished + "/" + e.SearchedValuesCount + ") File:" + e.ActualSearchedFile; } ) ); this.pbProgress.Dispatcher.Invoke( new Action( () => { this.pbProgress.Value = ((double)e.SearchedValuesFinished / ((double)e.SearchedValuesCount)) * 100; } ) ); }