public StringListTableDelegate (StringListTableDataSource datasource, IStringListTableDelegate callback) { this.DataSource = datasource; _callback = callback; }
public StringListTableDelegate(StringListTableDataSource datasource, IStringListTableDelegate callback) { this.DataSource = datasource; _callback = callback; }
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); }