コード例 #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);
 }