Example #1
0
        async void OnClick(object sender, System.EventArgs e)
        {
            if (UsernameEntry.Text == null)
            {
                if (User.Locale != "ko")
                {
                    NickNameLabel.Text = "Please Retry your nickname (7 Characters)";
                }
                else
                {
                    NickNameLabel.Text = "닉네임을 다시 입력하세요.";
                }

                UsernameEntry.Text = "";
                return;
            }

            if (UsernameEntry.Text.Length > 20)
            {
                if (User.Locale != "ko")
                {
                    NickNameLabel.Text = " your nickname Too Long Name";
                }
                else
                {
                    NickNameLabel.Text = "닉네임 길이가 너무 깁니다.다시 입력하세요";
                }
                UsernameEntry.Text = "";
                return;
            }

            if (UsernameEntry.Text.Length == 0)
            {
                if (User.Locale != "ko")
                {
                    NickNameLabel.Text = "Please Retry your nickname (7 Characters)";
                }
                else
                {
                    NickNameLabel.Text = "닉네임을 다시 입력하세요.";
                }

                UsernameEntry.Text = "";
                return;
            }

            if (UsernameEntry.Text.IndexOf(' ') != -1)
            {
                if (User.Locale != "ko")
                {
                    NickNameLabel.Text = "Please Retry your nickname (7 Characters)";
                }
                else
                {
                    NickNameLabel.Text = "닉네임을 다시 입력하세요.";
                }

                UsernameEntry.Text = "";
                return;
            }


            NetProcess.SendCheckNickName(UsernameEntry.Text);
        }