private void btSzukaj_Click(object sender, RoutedEventArgs e) { Megawyszukiwacz mw = new Megawyszukiwacz(ref this.dokSource.Dokumenty, this.dokSource.Termy); mw.DajCzadu(this.tbZapytanie.Text, this.progressBar); this.lbWyniki.ItemsSource = this.dokSource.SortDokumentList(); this.lbWyniki.Items.Refresh(); }
private void btSzukaj2_Click(object sender, RoutedEventArgs e) { Megawyszukiwacz mw = new Megawyszukiwacz(ref this.dokSource.Dokumenty, this.dokSource.Termy); try { mw.DajCzadu500(this.tbZapytanie.Text, this.progressBar,2,double.Parse(termCoefficent_Tblock.Text) ); this.lbWyniki.ItemsSource = this.dokSource.SortDokumentList(); this.lbWyniki.Items.Refresh();} catch(Exception ex) { MessageBox.Show(ex.Message); } }