public SearchThread(SearchForm form, IPackage pkg, Predicate<IResourceIndexEntry> match, byte[] pattern, AddCallBack addCB, updateProgressCallback updateProgressCB, stopSearchCallback stopSearchCB, searchCompleteCallback searchCompleteCB) { this.form = form; this.pkg = pkg; this.match = match; this.pattern = (byte[])pattern.Clone(); this.addCB = addCB; this.updateProgressCB = updateProgressCB; this.stopSearchCB = stopSearchCB; this.searchCompleteCB = searchCompleteCB; }
void searchForm_Go(object sender, SearchForm.GoEventArgs e) { this.browserWidget1.SelectedResource = e.ResourceIndexEntry; }
void SearchForm_SearchComplete(object sender, SearchForm.BoolEventArgs e) { searching = false; while (searchThread != null && searchThread.IsAlive) searchThread.Join(100); searchThread = null; this.toolStripProgressBar1.Visible = false; this.toolStripStatusLabel1.Visible = false; tbHex.Enabled = true; btnSearch.Text = "&Search"; }
private void toolsSearch() { SearchForm searchForm = new SearchForm(); searchForm.Width = this.Width * 4 / 5; searchForm.Height = this.Height * 4 / 5; searchForm.CurrentPackage = this.CurrentPackage; searchForm.Go += this.searchForm_Go; searchForm.Show(); }