Beispiel #1
0
        public void ExecuteJoin(PasswordBox passwordBox) //send관련 메소드
        {
            string password = passwordBox.Password;

            if (string.IsNullOrEmpty(id))
            {
                MessageBox.Show("ID를 입력하세용");
            }
            else if (string.IsNullOrEmpty(password))
            {
                MessageBox.Show("비밀번호를 입력하세용");
            }
            else if (string.IsNullOrEmpty(nickname))
            {
                MessageBox.Show("닉네임을 입력하세용");
            }
            else if (string.IsNullOrEmpty(phone))
            {
                MessageBox.Show("폰번호를 입력하세용");
            }
            else if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(password) && !string.IsNullOrEmpty(nickname) && !string.IsNullOrEmpty(phone))
            {
                messengerClient.requestJoin(id, password, nickname, phone);
            }
            else
            {
                MessageBox.Show("위의 4개중 하나이상 입력에서 누락되었습니다. 채우지 않은부분은 입력을 해주세요");
            }
        }