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