/// <summary> /// This method Signs Up a User /// </summary> public void SignUp() { // validate the user bool isValid = ValidateUser(); // if everything is valid if (isValid) { // Set to 0 percent Percent = 0; // Process the Login bool started = StartProcessSignUp(); // if the InvisiibleSprite exists if ((HasInvisibleSprite) && (started)) { // A login in process is true LoginInProcess = true; // Start the Timer InvisibleSprite.Start(); } // Show the ProgressBar ShowProgress = true; } }
/// <summary> /// This method Login Button _ Click /// </summary> public async void LoginButton_Click() { // if the value for HasParentIndexPage is true if (HasParentIndexPage) { // Set to 0 percent Percent = 0; // Process the Login bool started = await StartProcessLogin(); // Now start the Timer in the invisible sprite. // The Refresh method gets called every time the Interval of the Sprite elapses. // if the InvisiibleSprite exists if ((HasInvisibleSprite) && (started)) { // A login in process is true LoginInProcess = true; // Start the Timer InvisibleSprite.Start(); } // Show the ProgressBar ShowProgress = true; } }