public override void UpdateUI()
 {
     SetActive((Enum)UI.IPT_ADDRESS, !isValidGoogleAccountPopup);
     SetActive((Enum)UI.POP_ADDRESS, isValidGoogleAccountPopup);
     SetInput((Enum)UI.IPT_ADDRESS, string.Empty, 255, (EventDelegate.Callback)InputCallback);
     SetInput((Enum)UI.IPT_PASSWORD, string.Empty, 255, (EventDelegate.Callback)InputCallback);
     if (isValidGoogleAccountPopup)
     {
         List <string> account_list = null;
         googleAccountList = NetworkNative.getGoogleAccounts();
         if (googleAccountList.googleAccounts.Count > 0)
         {
             UILabel lbl = base.GetComponent <UILabel>((Enum)UI.LBL_ADDRESS);
             account_list = new List <string>();
             googleAccountList.googleAccounts.ForEach(delegate(NetworkNative.GoogleAccount account)
             {
                 account_list.Add(PopupTextAdjust(lbl, account.name));
             });
         }
         SetPopupListText((Enum)UI.POP_ADDRESS, account_list, -1);
         SetPopupListOnChange((Enum)UI.POP_ADDRESS, (Enum)UI.LBL_ADDRESS, (EventDelegate.Callback)InputCallback_Address);
     }
     SetLabelText((Enum)UI.LBL_ADDRESS_TEXT, base.sectionData.GetText((!isGoogleAccount) ? "MAIL" : "GOOGLE"));
     base.UpdateUI();
 }
 public override void UpdateUI()
 {
     SetActive((Enum)UI.IPT_ADDRESS, !isGoogleAccount);
     SetActive((Enum)UI.POP_ADDRESS, isGoogleAccount);
     SetActive((Enum)UI.OBJ_SECRET_QUESTION, !isGoogleAccount);
     SetInput((Enum)UI.IPT_ADDRESS, string.Empty, 255, (EventDelegate.Callback)InputCallBack);
     SetInput((Enum)UI.IPT_PASSWORD, string.Empty, 255, (EventDelegate.Callback)InputCallBack);
     SetInput((Enum)UI.IPT_CONFIRM_PASSWORD, string.Empty, 255, (EventDelegate.Callback)InputCallBack);
     if (!isGoogleAccount)
     {
         SetInput((Enum)UI.IPT_SECRET_ANSER, string.Empty, 45, (EventDelegate.Callback)InputCallBack);
     }
     if (isGoogleAccount)
     {
         List <string> account_list = null;
         googleAccountList = NetworkNative.getGoogleAccounts();
         if (googleAccountList.googleAccounts.Count > 0)
         {
             UILabel lbl = base.GetComponent <UILabel>((Enum)UI.LBL_ADDRESS);
             account_list = new List <string>();
             googleAccountList.googleAccounts.ForEach(delegate(NetworkNative.GoogleAccount account)
             {
                 account_list.Add(PopupTextAdjust(lbl, account.name));
             });
         }
         SetPopupListText((Enum)UI.POP_ADDRESS, account_list, -1);
         SetPopupListOnChange((Enum)UI.POP_ADDRESS, (Enum)UI.LBL_ADDRESS, (EventDelegate.Callback)InputCallBack_Address);
     }
     else
     {
         List <string> list = new List <string>();
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 0u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 1u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 2u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 3u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 4u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 5u));
         list.Add(StringTable.Get(STRING_CATEGORY.ACCOUNT, 6u));
         SetPopupListText((Enum)UI.POP_SECRET_QUESTION, list, -1);
         SetPopupListOnChange((Enum)UI.POP_SECRET_QUESTION, (Enum)UI.LBL_SECRET_QUESTION, (EventDelegate.Callback)InputCallBack_SecretQuestion);
     }
 }