Beispiel #1
0
 //--------------------------------------------------------------------------------
 // CallbackLogin
 //--------------------------------------------------------------------------------
 private void CallbackLogin(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelMessage.Show(msgFailConfirm);
         panelSecurityCode.Init(Constants.AccountActionType.ConfirmAccount, CallbackConfirmLogin);
     }
     else if (result[0] == Constants.INT_RECONFIRM.ToString())
     {
         panelMessage.Show(msgFailConfirm);
         panelSecurityCode.Init(Constants.AccountActionType.LoginAccount, CallbackConfirmLogin);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         panelOverlay.Show();
         panelActorList.Show();
         Hide();
     }
 }
 // -------------------------------------------------------------------------------
 // CallbackAccountDelete
 // -------------------------------------------------------------------------------
 private void CallbackAccountDelete(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelSecurityCode.Init(Constants.AccountActionType.DeleteAccount, CallbackConfirmAccountDelete);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         inputAccountName.text = "";
         inputPassword.text    = "";
         panelMessage.Show(msgSuccess);
         Hide();
     }
 }
Beispiel #3
0
 // -------------------------------------------------------------------------------
 // CallbackAccountForgotPassword
 // -------------------------------------------------------------------------------
 public void CallbackAccountForgotPassword(string[] result)
 {
     Debug.Log("CallbackAccountForgotPassword" + result[0]);
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelSecurityCode.Init(Constants.AccountActionType.ForgotPassword, CallbackConfirmAccountForgotPassword);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         panelMessage.Show(msgSuccess);
         Hide();
         panelMain.Show();
     }
 }
 //--------------------------------------------------------------------------------
 // CallbackAccountChangeName
 //--------------------------------------------------------------------------------
 private void CallbackAccountChangeName(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelSecurityCode.Init(Constants.AccountActionType.ChangeName, CallbackConfirmAccountChangeName);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         clientManager.clientAccount.sName = sNewAccountName;
         inputAccountNameOld.text          = sNewAccountName;
         inputAccountName.text             = "";
         inputPassword.text = "";
         panelMessage.Show(msgSuccess);
         Hide();
     }
 }
 // -------------------------------------------------------------------------------
 // CallbackAccountChangeMail
 // -------------------------------------------------------------------------------
 public void CallbackAccountChangeMail(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelSecurityCode.Init(Constants.AccountActionType.ChangeMail, CallbackConfirmAccountChangeMail);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         clientManager.clientAccount.sMail = sNewMail;
         inputEmailOld.text = sNewMail;
         inputEmail.text    = "";
         inputPassword.text = "";
         panelMessage.Show(msgSuccess);
         Hide();
     }
 }