public void putChatSession(string sessionHash, ChatWindow chat)
 {
     activeChatsSESSION.Add(sessionHash, chat);
 }
예제 #2
0
 private void _appendOpenError(ChatWindow chat)
 {
     chat.AppendMsg("* An error occured while trying to open conversation with the user", System.Drawing.Color.Red);
 }
        public ChatWindow createChat(string uuid, string forceIP)
        {
            if (uuid == null)
                return null;

            lock (syncLock)
            {
                if (getChatByUUID(uuid) != null)
                    return null;

                TDIN_chatlib.IPUser user = null;

                foreach(var u in userList)
                {
                    if(u.UUID == uuid)
                    {
                        user = u;
                        break;
                    }
                }

                if( user == null )
                    return null;

                ChatWindow chat = new ChatWindow(user, forceIP);

                activeChatsUUID.Add(uuid, chat);

                return chat;
            }
        }