Beispiel #1
0
 private void Send()
 {
     if (UserMassageTB?.Any() ?? false)
     {
         log.AddLog("Получена команда от пользвателя - ", UserMassageTB);
         Messages.Add(new UserMessage(UserMassageTB, "user"));              //Add msg from user
         //Invoke after message is send
         GiveAnswer(new DuckMessage(sc.GetAnswer(UserMassageTB), "Ducky")); //Msg from Ducky
         UserMassageTB = "";
     }
 }