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; }
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; }