Beispiel #1
0
        public void Talk(string userName, string message)
        {
            Users user = CC.GetUser(userName);

            foreach (var v in CC.Users)
            {
                v.callback.ShowTalk(userName, message);
            }
        }
Beispiel #2
0
        public void Logout(string userName)
        {
            Users logoutUser = CC.GetUser(userName);

            CC.Users.Remove(logoutUser);
            logoutUser = null;
            foreach (var user in CC.Users)
            {
                user.callback.ShowLogout(userName);
            }
        }