From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
old mode 100755
new mode 100644
index a5cc9e1..869ac68
--- a/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/TemplatePage.cs
@@ -61,7 +61,7 @@
             var iconBtn = new Button
             {
                 Width = Application.GetRealWidth(936),
-                Height = Application.GetRealHeight(436),
+                Height = Application.GetRealWidth(436),
                 X = Application.GetRealWidth(72),
                 Y = Application.GetRealHeight(30),
                 UnSelectedImagePath = $"ZigeeLogic/logicbj{s}.png",
@@ -215,7 +215,7 @@
                             {
                                 var deviceinof = Method.GetCommonDevice(conditions["MacAddr"], conditions["Epoint"]);
                                 selecteddevice.deviceNameBtn.Visible = true;
-                                selecteddevice.deviceNameBtn.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(deviceinof);
+                                selecteddevice.deviceNameBtn.Text = LocalDevice.Current.GetDeviceEpointName(deviceinof);
                                 selecteddevice.regionNameBtn.Visible = true;
                                 Method.RoomNmae(selecteddevice.regionNameBtn, deviceinof);
                                 selecteddevice.iconBtn.UnSelectedImagePath ="ZigeeLogic/sensor13.png";
@@ -285,7 +285,7 @@
                     selecteddevice.del.MouseUpEventHandler += (sender, e) =>
                     {
 
-                        var alert = new ShowMsgControl(ShowMsgType.Confirm,
+                        var alert = new UserCenter.ShowMsgControl(ShowMsgType.Confirm,
                    Language.StringByID(MyInternationalizationString.doyouwanttodelete),
                    Language.StringByID(MyInternationalizationString.confrim));
                         alert.Show();
@@ -360,7 +360,7 @@
                             {
                                 var deviceinof = Method.GetCommonDevice(actions["DeviceAddr"].ToString(), actions["Epoint"].ToString());
                                 actiondevice.deviceNameBtn.Visible = true;
-                                actiondevice.deviceNameBtn.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(deviceinof);
+                                actiondevice.deviceNameBtn.Text = LocalDevice.Current.GetDeviceEpointName(deviceinof);
                                 actiondevice.regionNameBtn.Visible = true;
                                 Method.RoomNmae(actiondevice.regionNameBtn, deviceinof);
                                 switch (deviceinof.Type)
@@ -417,7 +417,7 @@
                     {
 
 
-                        var alert = new ShowMsgControl(ShowMsgType.Confirm,
+                        var alert = new UserCenter.ShowMsgControl(ShowMsgType.Confirm,
                      Language.StringByID(MyInternationalizationString.doyouwanttodelete),
                      Language.StringByID(MyInternationalizationString.confrim));
                         alert.Show();
@@ -472,7 +472,7 @@
                 var cycle = new Cycle(() => { Method.UpdateWeek(weekBtn, Common.Logic.CurrentLogic); });
                 UserView.HomePage.Instance.AddChidren(cycle);
                 UserView.HomePage.Instance.PageIndex += 1;
-                cycle.Show();
+                cycle.Show(LogicView.IfString._Logic,false);
 
                 //var cyclicCycle = new CyclicCycle(() => { UpdateWeek(btnweektext); });
                 //UserView.HomePage.Instance.AddChidren(cyclicCycle);

--
Gitblit v1.8.0