PartnerPartnerBookGroupListItemCtrl.cs 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. using XGame.Database;
  8. using XGame.Framework.UI;
  9. namespace FL.FGUI
  10. {
  11. /// <summary>
  12. /// UI逻辑处理类
  13. /// </summary>
  14. /// <typeparam name=""></typeparam>
  15. public partial class PartnerPartnerBookGroupListItemCtrl
  16. : UIController<PartnerPartnerBookGroupListItemVM>
  17. {
  18. protected override void OnEnable(object intent)
  19. {
  20. AddUIListenres();
  21. }
  22. protected override void OnDisable()
  23. {
  24. RemoveUIListenres();
  25. }
  26. #region UI事件
  27. private void AddUIListenres() { }
  28. private void RemoveUIListenres() { }
  29. #endregion
  30. public void OnRefresh(int index, collectTable table)
  31. {
  32. VM.NameLabel.text = table.Name;
  33. VM.List.BindDatas(table.Param);
  34. }
  35. }
  36. }