예제 #1
0
 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;
     }
 }
예제 #2
0
 public TalkToTheBot()
 {
     InitializeComponent();
     botList = BotAnswer.BotAssembly();
 }