예제 #1
0
 private void autoCompleteCommand()
 {
     var selection = informationList.SelectedItems[0].Text;
     var autocomplete = new CommandAutoCompletion()
         .AutoComplete(
             selection,
             getContent());
     if (autocomplete.Length == 0)
         return;
     if (!commandEndsWithSpace(selection))
         autocomplete += " ";
     textBoxSearch.SelectedText = autocomplete;
 }
예제 #2
0
        private void autoCompleteCommand()
        {
            var selection    = informationList.SelectedItems[0].Text;
            var autocomplete = new CommandAutoCompletion()
                               .AutoComplete(
                selection,
                getContent());

            if (autocomplete.Length == 0)
            {
                return;
            }
            if (!commandEndsWithSpace(selection))
            {
                autocomplete += " ";
            }
            textBoxSearch.SelectedText = autocomplete;
        }