Exemplo n.º 1
0
    //private void registerUserCallback()
    //{
    //	Input_account.text = userName;
    //	Input_pwd.text = password;
    //}

    //登陆操作
    private void loginClickHandler()
    {
        //if(btn_login!=null)
        //btn_login.enabled = false;
        bool login = LoginRpcProxy.getInstance().LoginToApp(Input_account.text, Input_pwd.text, (int code) =>
        {
            //if (btn_login != null)
            //btn_login.enabled = true;
            if (code == 1)
            {
                if (loginDelegate != null)
                {
                    loginDelegate.Invoke();
                }
            }
        });
    }
Exemplo n.º 2
0
 //Login Submit Button
 private void LoginButton_Click(object sender, EventArgs e)
 {
     loginDel.Invoke();
 }