From 4f2dbd1f6a1ec2d9c3c39b4a37b0b7c9ddece4aa Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 23 九月 2021 15:24:01 +0800 Subject: [PATCH] 主页刷新优化 --- HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs index 1c95f32..c576ebf 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrLearnPage.cs @@ -45,7 +45,6 @@ var row = new FrameLayout() { - //Width = Application.GetRealWidth(200), Height = Application.GetRealHeight(56), }; contentView.AddChidren(row); @@ -53,11 +52,10 @@ int index = 0; foreach(var attr in device.attributes) { - if(index != 0 && index%3==0) + if (index != 0 && index % 3 == 0) { row = new FrameLayout() { - Width = Application.GetRealWidth(200), Height = Application.GetRealHeight(56), }; contentView.AddChidren(row); @@ -92,7 +90,7 @@ btn.MouseUpEventHandler = (sender, e) => { System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); - d.Add(FunctionAttributeKey.Key, attr.key); + d.Add(attr.key, ""); Control.Ins.SendWriteCommand(device, d); new System.Threading.Thread(() => { -- Gitblit v1.8.0