private async void btnAutoComplete_ClickAsync(object sender, EventArgs e) { var autoComplete = new googleComplete(); try { await autoComplete.GetSearchSuggestions(tboxPhrase.Text); } catch { Utils.UserMessage("Please Connect to the internet before using autocomplete.", messageType: Globals.MessageTypes.Error); } //return if no autocomplete suggestions are returned if (autoComplete.AutoCompleteSuggestions.Count == 0) { return; } TypingViews.CreateSuggestionGrid(autoComplete); }
private void btnStartTyping_Click(object sender, EventArgs e) { Classification.IsTyping = true; Classification.IsRunning = true; TypingViews.CreateInitialGrid(); }