示例#1
0
 //--------------------------------------------------------------------------------
 // CallbackAccountLogout
 //--------------------------------------------------------------------------------
 public void CallbackAccountLogout(string[] result)
 {
     if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         Hide();
         panelMain.Show();
     }
 }
示例#2
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();
     }
 }
 //--------------------------------------------------------------------------------
 // CallbackRegisterAccount
 //--------------------------------------------------------------------------------
 private void CallbackRegisterAccount(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgRegisterFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         Hide();
         panelMessage.Show(msgRegisterConfirm);
         panelMain.Show();
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         Hide();
         panelMessage.Show(msgRegisterSuccess);
         panelMain.Show();
     }
 }
示例#4
0
 //--------------------------------------------------------------------------------
 // CallbackCheckVersion
 //--------------------------------------------------------------------------------
 private void CallbackCheckVersion(string[] result)
 {
     if (result[0] != Constants.INT_FAILURE.ToString())
     {
         Hide();
         panelMain.Show();
     }
     else
     {
         panelMessage.Show(msgVersionFail);
     }
 }
示例#5
0
 //--------------------------------------------------------------------------------
 // ClickCancel
 //--------------------------------------------------------------------------------
 public void ClickCancel()
 {
     Hide();
     panelMain.Show();
 }