Example #1
0
 protected void receiveMsgHandler(UserThread client, CSMessage msg)
 {
     try
     {
         CSUser user    = (CSUser)msg.get(MessageType.USER);
         string message = (string)msg.get(MessageType.MESSAGE);
         if (view.isOpened())
         {
             view.receiveMsgHandler(user, message);
         }
     }
     catch (Exception e)
     {
         log(Severiry.ERROR, "Controller [ReceiveMsg] - " + e.Message);
     }
 }