private callMainThreadDisplaySuggestion ( List |
||
suggestions | List |
|
auto | bool | |
리턴 | void |
private void callMainThreadDisplaySuggestion(List<Suggestion> suggestions, bool auto)
{
if (suggestions != null && suggestions.Count != 0)
{
autoCompleteForm.populateForm(suggestions);
displaySuggestionBox();
}
else if (suggestions != null && !auto)
{
notificationForm.setMessage("No suggestions available");
notificationForm.updateLocation(applicationLocation, applicationSize);
notificationForm.showWithTimer(3);
}
else if (suggestions == null || auto)
{
autoCompleteForm.Hide();
}
}