Пример #1
0
        public void addSuggester( Suggester s )
        {
            s.SuggestionEventHandler += onSuggesterSuggestion;
            s.OnDone += ( suggester ) => {
                lock ( mutex ) {
                    doneCount++;
                    if ( doneCount == suggesters.Count )
                        onSuggestersDone();
                }

            };
            suggesters.Add(s);
        }
Пример #2
0
 public void removeSuggester( Suggester s )
 {
     suggesters.Remove(s);
 }
Пример #3
0
 public Suggestion( string suggestion , double weight , Suggester s )
 {
     this.suggestion = suggestion;
     this.weight = weight;
     suggesters.Add(s);
 }