Exemplo n.º 1
0
        public void ShowInterjections(List <string> interjections)
        {
            var ds = new StringListTableDataSource(interjections.OrderBy(p => p));

            _interjectionsTable.DataSource = ds;
            _interjectionsTable.Delegate   = new StringListTableDelegate(ds, null);
        }
Exemplo n.º 2
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);
            }
        }