From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:25:59 +0800 Subject: [PATCH] 2024年07月25日17:24:45 --- HDL_ON/UI/UI2/FuntionControlView/OrderFunctionPage.cs | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/OrderFunctionPage.cs b/HDL_ON/UI/UI2/FuntionControlView/OrderFunctionPage.cs index 3652c6a..a20397c 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/OrderFunctionPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/OrderFunctionPage.cs @@ -113,7 +113,7 @@ /// <summary> /// 鏄剧ず鐨勮澶囩殑鎬绘暟 /// </summary> - int showCount = 0; + int showCount = -1; /// <summary> /// 鍔犺浇鍔熻兘row @@ -133,21 +133,19 @@ { if (!isAppend) { - showCount = 0; + showCount = -1; functionListView.RemoveAll(); } - int i = 0; - - - foreach (var function in functions) + for(var i =0;i<100;i++) + //foreach (var function in functions) { - i++; - if (i > 100) + showCount++; + if (showCount >= functions.Count) { break; } - showCount++; + var function = functions[showCount]; var functionDiv = new OrderFunctionRow() { Gravity = Gravity.CenterHorizontal, -- Gitblit v1.8.0