public void GetUpdate(int value, string userName)
        {
            switch (value)
            {
            case 0:
                Chat.AddUserToList(userName);
                break;

            case 1:
                Chat.RemoveUserFromList(userName);
                break;
            }
        }
Example #2
0
        public void GetUpdate(int value, string userName)
        {
            if (LoginForm._channelFactory.State == CommunicationState.Opened)
            {
                switch (value)
                {
                case 0:
                    Chat.AddUserToList(userName);
                    break;

                case 1:
                    Chat.RemoveUserFromList(userName);
                    break;
                }
            }
        }