public void addSuggester( Suggester s ) { s.SuggestionEventHandler += onSuggesterSuggestion; s.OnDone += ( suggester ) => { lock ( mutex ) { doneCount++; if ( doneCount == suggesters.Count ) onSuggestersDone(); } }; suggesters.Add(s); }
public void removeSuggester( Suggester s ) { suggesters.Remove(s); }
public Suggestion( string suggestion , double weight , Suggester s ) { this.suggestion = suggestion; this.weight = weight; suggesters.Add(s); }