示例#1
0
        async void OnLoginButtonClicked(object sender, EventArgs e)
        {
            User.Username = usernameEntry.Text;
            User.Password = passwordEntry.Text;

            if (User.Username == null || User.Password == null)
            {
                messageLabel.Text = "아이디와 비번을 다시 입력하세요";
                return;
            }

            NetProcess.SendLogin(User.Username, User.Password);

            if (User.Username == "강병욱" || User.Username == "nhs")
            {
                MainPage mainpage = Parent as MainPage;

                bool find = false;
                foreach (var child in mainpage.Children)
                {
                    if (child.Title == "찬송")
                    {
                        find = true;
                    }
                }
                if (find == false)
                {
                    mainpage.Children.Add(new Hymn());
                }
            }
        }
示例#2
0
        async void OnLoginClicked(object sender, System.EventArgs e)
        {
            string inputstring = await InputBox(this.Navigation);

            User.myInfo.NickName = inputstring;

            NetProcess.SendLogin(inputstring, inputstring);
        }
示例#3
0
 async void login_btn(object sender, System.EventArgs e)
 {
     User.CacheData.UserName = usernameEntry.Text;
     User.CacheData.Passwd   = passwordEntry.Text;
     NetProcess.SendLogin(usernameEntry.Text, passwordEntry.Text);
 }