From ac9a9ea595168753cc45dff7f4eb9843beb2b0ca Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 11 八月 2023 19:40:56 +0800 Subject: [PATCH] 2023年08月11日19:40:20 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs index 25a64f5..ca2f461 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs @@ -23,8 +23,14 @@ /// 鍒楄〃鏈�澶у�� /// </summary> private int mListCount; - - public Action<KeypadEntity> selectAction = null; + /// <summary> + /// 鎸夐敭鍥炶皟 + /// </summary> + public Action<KeypadEntity> selectKeyAction = null; + /// <summary> + /// 褰辩墖鍥炶皟 + /// </summary> + public Action<MovieLibrary> selectImageAction = null; /// <summary> @@ -119,7 +125,7 @@ { if (buttonFram.Tag != null&& buttonFram.Tag is KeypadEntity) { - selectAction?.Invoke((KeypadEntity)buttonFram.Tag); + selectKeyAction?.Invoke((KeypadEntity)buttonFram.Tag); } }); @@ -200,7 +206,7 @@ { if (buttonFram.Tag != null&& buttonFram.Tag is KeypadEntity) { - selectAction?.Invoke((KeypadEntity)buttonFram.Tag); + selectKeyAction?.Invoke((KeypadEntity)buttonFram.Tag); } }); @@ -265,7 +271,7 @@ return; } button.IsSelected = true; - selectAction?.Invoke((KeypadEntity)button.Tag); + selectKeyAction?.Invoke((KeypadEntity)button.Tag); }; button.MouseUpEventHandler += (sen, e) => { @@ -318,14 +324,14 @@ imageFram.SetClickListener((fl) => { - if (imageFram.Tag != null&& imageFram.Tag is KeypadEntity) + if (imageFram.Tag != null&& imageFram.Tag is MovieLibrary) { - selectAction?.Invoke((KeypadEntity)imageFram.Tag); + selectImageAction?.Invoke((MovieLibrary)imageFram.Tag); } }); //if (CurrnetSelectIndex != -1 && CurrnetSelectIndex == i) //{ - // selectAction?.Invoke((int)imageFram.Tag); + // selectImageAction?.Invoke((int)imageFram.Tag); //} } } @@ -335,7 +341,7 @@ /// </summary> /// <param name="mRowNumber">涓�琛屽灏戜釜鍏冪礌</param> /// <param name="defaultIndex">榛樿鍊肩储寮曡寖鍥碵0,mList.count-1],澶т簬鑼冨洿,璇ュ�艰涓烘棤鏁�</param> - public void LoadImagePage(List<KeypadEntity> mList, int mRowNumber) + public void LoadImagePage(List<MovieLibrary> mList, int mRowNumber) { if (mList == null || mList.Count == 0) { @@ -368,15 +374,15 @@ } imageFram.SetClickListener((fl) => { - if (imageFram.Tag != null) + if (imageFram.Tag != null && imageFram.Tag is MovieLibrary) { - selectAction?.Invoke((KeypadEntity)imageFram.Tag); + selectImageAction?.Invoke((MovieLibrary)imageFram.Tag); } }); //if (CurrnetSelectIndex != -1 && CurrnetSelectIndex == i) //{ - // selectAction?.Invoke((int)imageFram.Tag); + // selectImageAction?.Invoke((MovieLibrary)imageFram.Tag); //} @@ -428,7 +434,7 @@ keypad.category = filters.category; keypad.filterValue = filters.filterValue; keypad.filterName = filters.filterName; - selectAction?.Invoke(keypad); + selectKeyAction?.Invoke(keypad); }; horizontal.InitControl(filterCategory.filters, defaultIndex); -- Gitblit v1.8.0