private void Enter_Click(object sender, EventArgs e) { if (textToEnter.Text != "") { chatTextBox.AppendText("User: "******"\n"); enteredText = textToEnter.Text.ToLower(); botAnswer = BotAnswer.BotAnswerMethod(enteredText, botList); chatTextBox.AppendText("Chat Bot: " + botAnswer + "\n"); botAnswer = null; } }
public TalkToTheBot() { InitializeComponent(); botList = BotAnswer.BotAssembly(); }