public override void Dispose() { base.Dispose(); This = null; }
protected override void RenderDropdownList() { base.RenderDropdownList(); _list.RemoveChildrenToPool(); int cnt = _items.Length; try { for (int i = 0; i < cnt; i++) { GObject item = _list.AddItemFromPool(); item.text = _items[i]; CBox_SelectNumber_item cBox_Account_ = item.asButton as CBox_SelectNumber_item; PlayUserHistory user_History = Login_Account.GetUserUser_History(item.text); if (user_History != null) { cBox_Account_.m_Text_Date.SetVar("date", Utility.Text.Format("{0}-{1}", user_History.DateTime.Month.ToString(), user_History.DateTime.Day.ToString())).FlushVars(); switch (user_History.LoginType) { case LoginType.QucikLogin: //[b] 游客账号:[/b] {guest=9999x001} cBox_Account_.m_Text_Number_Item.SetGTextByCode("Text_Number_Item_002"); cBox_Account_.m_Text_Number_Item.SetVar("guest", user_History.NickName).FlushVars(); //设置图标 cBox_Account_.m_Text_Icon.SetGTextByCode(user_History.LoginType.ToString()); break; case LoginType.MobilePhone: //[b] 手机号:[/b] {phone=13588737213} cBox_Account_.m_Text_Number_Item.SetGTextByCode("Text_Number_Item_001"); cBox_Account_.m_Text_Number_Item.SetVar("phone", user_History.NickName).FlushVars(); cBox_Account_.m_Text_Icon.SetGTextByCode(user_History.LoginType.ToString()); break; case LoginType.Apple: break; case LoginType.NS: break; case LoginType.Instagram: break; case LoginType.Twitter: break; case LoginType.Facebook: break; case LoginType.Others: break; default: break; } user_History.selectedIndex = i; } } } catch (System.Exception) { } }
public CBox_SelectNumber_item() { This = this; }