Ejemplo n.º 1
0
 public void HandlerChatFinalized(object o, ChatFinalizedEventArgs e)
 {
     if (ChatFinalized != null)
     {
         ChatFinalized(this, e);
     }
 }
Ejemplo n.º 2
0
        protected virtual void OnChatFinalize(int roomId, bool result)
        {
            ChatFinalizedEventArgs e = new ChatFinalizedEventArgs();

            e.result = result;
            e.roomId = roomId;

            Console.WriteLine(chatRoomAccepts.TryGetValue(roomId, out ChatRoomInfo info));
            e.userList = info.clients.Select(element => element.UserName).ToList();

            if (ChatFinalized != null)
            {
                ChatFinalized(this, e);
            }
        }