From 43b0d5870d528f23ecd6aeceb6cfd4325188b46f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 15:50:43 +0800
Subject: [PATCH] Revert "1"

---
 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