Exemplo n.º 1
0
        private void LoadViewControllers()
        {
            viewControllerLogin = new ViewControllerLogin();
            viewControllerLogin.controllerDelegate = this;
            viewControllerLogin.visible            = false;

            viewControllerCreateAccount = new ViewControllerCreateAccount();
            viewControllerCreateAccount.controllerDelegate = this;
            viewControllerCreateAccount.visible            = false;
        }
Exemplo n.º 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
        }
Exemplo n.º 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
        }
Exemplo n.º 4
0
        private void LoadViewControllers()
        {
            viewControllerLogin = new ViewControllerLogin();
            viewControllerLogin.controllerDelegate = this;
            viewControllerLogin.visible = false;

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