示例#1
0
        private void LoadViewControllers()
        {
            viewControllerLogin = new ViewControllerLogin();
            viewControllerLogin.controllerDelegate = this;
            viewControllerLogin.visible            = false;

            viewControllerCreateAccount = new ViewControllerCreateAccount();
            viewControllerCreateAccount.controllerDelegate = this;
            viewControllerCreateAccount.visible            = false;
        }
示例#2
0
        public void OnViewControllerCreateAccountAction(ViewControllerCreateAccount controller, string email, string password)
        {
            if (!CanCreateAccount())
            {
                return;
            }

            LoginServerInfo info = GetLoginServerConnectionInfo();

            loginClient.clientDelegate = new CreateAccountDelegate(this);
            loginClient.Connect(info.ip, info.port);

            data    = new string[2];
            data[0] = email;
            data[1] = password;

            viewControllerCreateAccount.visible = false;

            // show wait form
        }
示例#3
0
        public void OnViewControllerCreateAccountAction(ViewControllerCreateAccount controller, string email, string password)
        {
            if (!CanCreateAccount())
                return;

            LoginServerInfo info = GetLoginServerConnectionInfo();

            loginClient.clientDelegate = new CreateAccountDelegate(this);
            loginClient.Connect(info.ip, info.port);

            data = new string[2];
            data[0] = email;
            data[1] = password;

            viewControllerCreateAccount.visible = false;

            // show wait form
        }
示例#4
0
        private void LoadViewControllers()
        {
            viewControllerLogin = new ViewControllerLogin();
            viewControllerLogin.controllerDelegate = this;
            viewControllerLogin.visible = false;

            viewControllerCreateAccount = new ViewControllerCreateAccount();
            viewControllerCreateAccount.controllerDelegate = this;
            viewControllerCreateAccount.visible = false;
        }