public StringListTableDelegate (StringListTableDataSource datasource, IStringListTableDelegate callback)
 {
     this.DataSource = datasource;
     _callback = callback;
 }
예제 #2
0
 public StringListTableDelegate(StringListTableDataSource datasource, IStringListTableDelegate callback)
 {
     this.DataSource = datasource;
     _callback       = callback;
 }
예제 #3
0
 public void ShowSuggestions(List<string> suggestions)
 {
     _suggestions = suggestions;
     var ds = new StringListTableDataSource(suggestions);
     _tableSuggestions.DataSource = ds;
     _tableSuggestions.Delegate = new StringListTableDelegate(ds, null);
     if (suggestions.Count > 0)
     {
         _tableSuggestions.SelectRow(0, false);
     }
 }
 public void ShowInterjections(List<string> interjections)
 {
     var ds = new StringListTableDataSource(interjections.OrderBy(p=>p));
     _interjectionsTable.DataSource = ds;
     _interjectionsTable.Delegate = new StringListTableDelegate(ds, null);
 }