public static void LoginSuccess() { LoginScene.Scene.Enabled = false; LoginDialog.Clear(); LoginDialog.Hide(); SoundManager.PlaySound(SoundList.LoginEffect, false); LoginScene.Background.Animated = true; }
public static void Login(Login P) { LoginDialog.LoginButton.Enabled = true; switch (P.Result) { case 0: SceneFunctions.ShowMessage("An error occured when trying to Log in."); LoginDialog.Clear(); break; case 1: SceneFunctions.ShowMessage("Logging in is currently disabled."); LoginDialog.Clear(); break; case 2: SceneFunctions.ShowMessage("Your AccountID is not acceptable."); LoginDialog.AccountIDTextBox.SetFocus(); break; case 3: SceneFunctions.ShowMessage("Your Password is not acceptable."); LoginDialog.PasswordTextBox.SetFocus(); break; case 4: SceneFunctions.ShowMessage("The AccountID does not exist."); LoginDialog.AccountIDTextBox.SetFocus(); break; case 5: SceneFunctions.ShowMessage("Incorrect Password and AccountID combination."); LoginDialog.PasswordTextBox.Text = string.Empty; LoginDialog.PasswordTextBox.SetFocus(); break; #if DEBUG default: throw new NotImplementedException(); #endif } }