From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 09:07:13 +0800
Subject: [PATCH] 新云端Ver1.3

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSettionWithSourceForm.cs |  340 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 170 insertions(+), 170 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSettionWithSourceForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSettionWithSourceForm.cs
index db3ee0e..23a9f63 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSettionWithSourceForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSettionWithSourceForm.cs
@@ -8,20 +8,20 @@
 
 namespace Shared.Phone.UserCenter.DevicePanel
 {
-    /// <summary>
-    /// 闈㈡澘鐨勬寜閿厤缃�愬甫鏈夌粦瀹氭簮銆戠殑鐣岄潰
+    /// <summary>
+    /// 闈㈡澘鐨勬寜閿厤缃�愬甫鏈夌粦瀹氭簮銆戠殑鐣岄潰
     /// </summary>
     public class PanelSettionWithSourceForm : EditorCommonForm
     {
-        #region 鈻� 鍙橀噺澹版槑___________________________
+        #region 鈻� 鍙橀噺澹版槑___________________________
 
-        /// <summary>
-        /// 鍒楄〃鎺т欢
-        /// </summary>
-        private FrameListControl listview = null;
-        /// <summary>
-        /// 璁惧鐨勬煇涓�鍥炶矾
-        /// </summary>
+        /// <summary>
+        /// 鍒楄〃鎺т欢
+        /// </summary>
+        private FrameListControl listview = null;
+        /// <summary>
+        /// 璁惧鐨勬煇涓�鍥炶矾
+        /// </summary>
         private CommonDevice deviceObj = null;
         /// <summary>
         /// Ac鐩爣鍚嶅瓧
@@ -78,50 +78,50 @@
 
         #endregion
 
-        #region 鈻� 鍒濆鍖朹____________________________
+        #region 鈻� 鍒濆鍖朹____________________________
 
-        /// <summary>
-        /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
-        /// </summary>
-        /// <param name="i_device">璁惧鐨勬煇涓�鍥炶矾</param>
-        public void ShowForm(CommonDevice i_device)
-        {
-            this.deviceObj = i_device;
+        /// <summary>
+        /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
+        /// </summary>
+        /// <param name="i_device">璁惧鐨勬煇涓�鍥炶矾</param>
+        public void ShowForm(CommonDevice i_device)
+        {
+            this.deviceObj = i_device;
             //鑾峰彇鏁版嵁
             InitInfo(deviceObj);
-
-            //璁剧疆澶撮儴淇℃伅
-            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uPanelSettion));
-
-            //鍒濆鍖栦腑閮ㄤ俊鎭�
-            this.InitMiddleFrame();
-
-            //鍒濆鍖栧彸涓婅鑿滃崟
-            this.InitTopRightMenu();
-        }
-
-        /// <summary>
-        /// 鍒濆鍖栦腑閮ㄤ俊鎭�
-        /// </summary>
-        private void InitMiddleFrame()
-        {
-            //娓呯┖bodyFrame
-            this.ClearBodyFrame();
-
+
+            //璁剧疆澶撮儴淇℃伅
+            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uPanelSettion));
+
+            //鍒濆鍖栦腑閮ㄤ俊鎭�
+            this.InitMiddleFrame();
+
+            //鍒濆鍖栧彸涓婅鑿滃崟
+            this.InitTopRightMenu();
+        }
+
+        /// <summary>
+        /// 鍒濆鍖栦腑閮ㄤ俊鎭�
+        /// </summary>
+        private void InitMiddleFrame()
+        {
+            //娓呯┖bodyFrame
+            this.ClearBodyFrame();
+
             var listBackControl = new VerticalFrameControl();
             listBackControl.Height = bodyFrameLayout.Height;
             bodyFrameLayout.AddChidren(listBackControl);
 
-            //鍥剧墖
-            var btnPic = new PicViewControl(426, 426);
+            //鍥剧墖
+            var btnPic = new PicViewControl(426, 426);
             btnPic.Y = Application.GetRealHeight(150);
-            btnPic.Gravity = Gravity.CenterHorizontal;
+            btnPic.Gravity = Gravity.CenterHorizontal;
             listBackControl.frameTable.AddChidren(btnPic);
             //鑾峰彇璁惧绫诲瀷鐨�
-            var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
+            var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
             if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment)
             {
-                btnPic.UnSelectedImagePath = "DeviceItem/ButtonPanelFangyueEnvironmentBigPic.png";
+                btnPic.UnSelectedImagePath = "DeviceItem/ButtonPanelFangyueEnvironmentBigPic.png";
             }
             else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
             {
@@ -133,33 +133,33 @@
             }
 
             //鍒濆鍖栨甯�
-            var tableContr = new InformationEditorControl();
-            this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028);
-
-            //鍒濆鍖栬彍鍗曡
-            this.InitMenuRow();
-
-            //鍒濆鍖栨甯冨畬鎴�
-            tableContr.FinishInitControl();
-            tableContr = null;
-
-            //淇濆瓨
-            var btnFinish = new BottomClickButton();
-            btnFinish.TextID = R.MyInternationalizationString.uSave;
-            bodyFrameLayout.AddChidren(btnFinish);
-            btnFinish.ButtonClickEvent += (sender, e) =>
-            {
-                //鍏抽棴鑷韩
-                this.CloseForm();
-            };
-        }
-
-        /// <summary>
-        /// 鍒濆鍖栬彍鍗曡
-        /// </summary>
-        private void InitMenuRow()
-        {
-            this.listview.RemoveAll();
+            var tableContr = new InformationEditorControl();
+            this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028);
+
+            //鍒濆鍖栬彍鍗曡
+            this.InitMenuRow();
+
+            //鍒濆鍖栨甯冨畬鎴�
+            tableContr.FinishInitControl();
+            tableContr = null;
+
+            //淇濆瓨
+            var btnFinish = new BottomClickButton();
+            btnFinish.TextID = R.MyInternationalizationString.uSave;
+            bodyFrameLayout.AddChidren(btnFinish);
+            btnFinish.ButtonClickEvent += (sender, e) =>
+            {
+                //鍏抽棴鑷韩
+                this.CloseForm();
+            };
+        }
+
+        /// <summary>
+        /// 鍒濆鍖栬彍鍗曡
+        /// </summary>
+        private void InitMenuRow()
+        {
+            this.listview.RemoveAll();
             //娣诲姞Ac鐩爣
             this.AddAcRow();
             //娣诲姞鏂伴鐩爣
@@ -194,14 +194,14 @@
                     });
 
                     //鑾峰彇璁惧绫诲瀷鐨�
-                    var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
+                    var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
                     bool result = false;
-                    if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueFreshAir)
+                    if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
                     {
                         result = await GetBindName(curControlDev);
                     }
-                    if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueEnvironment
-                        || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_SimpleEnvironment)
+                    if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment
+                        || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
                     {
                         result = await GetEnvironmentBindName(curControlDev);
                     }
@@ -246,33 +246,33 @@
                 bindList = panelBindListRes.getAllBindResponseData.BindList;
                 foreach (var bDev in bindList)
                 {
-                    var device = Common.LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint);
+                    var device = HdlDeviceCommonLogic.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint);
                     if (device == null)
                     {
                         continue;
                     }
                     //鑾峰彇璁惧绫诲瀷鐨�
-                    var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
+                    var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
                     if (device.Type == DeviceType.Thermostat)
                     {
                         //闈㈡澘鐨勭┖璋冭澶囷紝鍒欎笉鏄剧ず
-                        if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueFreshAir)
+                        if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
                         {
                             continue;
                         }
-                        bindAcName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                        bindAcName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                         bindAcDev = device;
                     }
                     else if (device.Type == DeviceType.FreshAir)
                     {
                         //闈㈡澘鐨勬柊椋庤澶囷紝鍒欎笉鏄剧ず
-                        if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueFreshAir
-                            || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueEnvironment
-                            || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_SimpleEnvironment)
+                        if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir
+                            || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment
+                            || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
                         {
                             continue;
                         }
-                        bindFreshAirName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                        bindFreshAirName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                         bindFreshAirDev = device;
                     }
                     else if (device.Type == DeviceType.TemperatureSensor)
@@ -280,35 +280,35 @@
                         var bD = device as TemperatureSensor;
                         if (bD.SensorDiv == 1)
                         {
-                            bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindTemperatureName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindTemperatureDev = device;
                         }
                         if (bD.SensorDiv == 2)
                         {
-                            bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindHumidityDev = device;
                         }
                     }
                     else if (device.Type == DeviceType.FreshAirHumiditySensor)
                     {
-                        bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                        bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                         bindHumidityDev = device;
                     }
                     else if (device.Type == DeviceType.PMSensor)
                     {
                         if (bDev.BindCluster == 1026)
                         {
-                            bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.TemperatureSensor);
+                            bindTemperatureName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.TemperatureSensor);
                             bindTemperatureDev = device;
                         }
                         if (bDev.BindCluster == 1029)
                         {
-                            bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.HumiditySensor);
+                            bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.HumiditySensor);
                             bindHumidityDev = device;
                         }
                         if (bDev.BindCluster == 1066)
                         {
-                            bindPmName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindPmName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindPMDev = device;
                         }
                     }
@@ -343,35 +343,35 @@
                     bindList = panelBindListRes.getAllBindResponseData.BindList;
                     foreach (var bDev in bindList)
                     {
-                        var device = Common.LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint);
+                        var device = HdlDeviceCommonLogic.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint);
                         if (device == null)
                         {
                             continue;
                         }
                         //鑾峰彇璁惧绫诲瀷鐨�
-                        var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
+                        var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
                         if (device.Type == DeviceType.Thermostat)
                         {
                             //闈㈡澘鐨勭┖璋冭澶囷紝鍒欎笉鏄剧ず
-                            if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueFreshAir
-                                || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueEnvironment
-                                || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_SimpleEnvironment)
+                            if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir
+                                || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment
+                                || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
                             {
                                 continue;
                             }
-                            bindAcName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindAcName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindAcDev = device;
                         }
                         else if (device.Type == DeviceType.FreshAir)
                         {
                             //闈㈡澘鐨勬柊椋庤澶囷紝鍒欎笉鏄剧ず
-                            if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueFreshAir
-                                || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_FangyueEnvironment
-                            || deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_SimpleEnvironment)
+                            if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir
+                                || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment
+                            || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
                             {
                                 continue;
                             }
-                            bindFreshAirName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindFreshAirName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindFreshAirDev = device;
                         }
                         else if (device.Type == DeviceType.TemperatureSensor)
@@ -379,35 +379,35 @@
                             var bD = device as TemperatureSensor;
                             if (bD.SensorDiv == 1)
                             {
-                                bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                                bindTemperatureName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                                 bindTemperatureDev = device;
                             }
                             if (bD.SensorDiv == 2)
                             {
-                                bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                                bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                                 bindHumidityDev = device;
                             }
                         }
                         else if (device.Type == DeviceType.FreshAirHumiditySensor)
                         {
-                            bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindHumidityDev = device;
                         }
                         else if (device.Type == DeviceType.Thermostat)
                         {
-                            bindAcName = Common.LocalDevice.Current.GetDeviceEpointName(device);
+                            bindAcName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
                             bindAcDev = device;
                         }
                         else if (device.Type == DeviceType.PMSensor)
                         {
                             if (bDev.BindCluster == 1026)
                             {
-                                bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.TemperatureSensor);
+                                bindTemperatureName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.TemperatureSensor);
                                 bindTemperatureDev = device;
                             }
                             if (bDev.BindCluster == 1029)
                             {
-                                bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.HumiditySensor);
+                                bindHumidityName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device) + "-" + Language.StringByID(R.MyInternationalizationString.HumiditySensor);
                                 bindHumidityDev = device;
                             }
                         }
@@ -431,7 +431,7 @@
         private void AddAcRow()
         {
             //鑾峰彇璁惧绫诲瀷鐨�
-            var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
+            var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
             if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
             {
                 return;
@@ -501,7 +501,7 @@
             rowNewWind.ButtonClickEvent += (sender, e) =>
             {
                 //鑾峰彇璁惧绫诲瀷鐨�
-                var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
+                var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
                 if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
                 {
                     this.deviceObj.DeviceEpoint = 1;
@@ -540,7 +540,7 @@
         private void AddPMRow()
         {
             //鑾峰彇璁惧绫诲瀷鐨�
-            var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
+            var deviceEnumInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { deviceObj });
             if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
             {
                 return;
@@ -588,8 +588,8 @@
         /// <summary>
         ///  娓╁害鏉ユ簮琛�
         /// </summary>
-        private void AddTemperatureSensorRow()
-        {
+        private void AddTemperatureSensorRow()
+        {
             //娓╁害鏉ユ簮
             var rowTemPerature = new FrameRowControl(listview.rowSpace / 2);
             listview.AddChidren(rowTemPerature);
@@ -681,20 +681,20 @@
         private void AddLevelRow()
         {
             //浜害璋冭妭
-            var rowLight = new FrameRowControl(listview.rowSpace / 2);
-            listview.AddChidren(rowLight);
-            rowLight.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uLightRegulation), 600);
-            //搴曠嚎
-            rowLight.AddBottomLine();
-            //鍙崇澶�
-            rowLight.AddRightArrow();
-            rowLight.ButtonClickEvent += (sender, e) =>
-            {
-                var form = new PanelBrightnessAdjustForm();
-                form.AddForm(this.deviceObj);
+            var rowLight = new FrameRowControl(listview.rowSpace / 2);
+            listview.AddChidren(rowLight);
+            rowLight.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uLightRegulation), 600);
+            //搴曠嚎
+            rowLight.AddBottomLine();
+            //鍙崇澶�
+            rowLight.AddRightArrow();
+            rowLight.ButtonClickEvent += (sender, e) =>
+            {
+                var form = new PanelBrightnessAdjustForm();
+                form.AddForm(this.deviceObj);
             };
         }
-        #endregion
+        #endregion
 
         #region 鈻� 鏁版嵁鐭_________________________ 
         /// <summary>
@@ -703,58 +703,58 @@
         private void DataCorrectionRow()
         {
             //鏁版嵁鐭
-            var rowLight = new FrameRowControl(listview.rowSpace / 2);
-            listview.AddChidren(rowLight);
-            rowLight.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.DataCorrection), 600);
-            //搴曠嚎
-            rowLight.AddBottomLine();
-            //鍙崇澶�
-            rowLight.AddRightArrow();
-            rowLight.ButtonClickEvent += (sender, e) =>
-            {
-                var form = new DataCorrectionForm();
-                form.AddForm(this.deviceObj);
+            var rowLight = new FrameRowControl(listview.rowSpace / 2);
+            listview.AddChidren(rowLight);
+            rowLight.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.DataCorrection), 600);
+            //搴曠嚎
+            rowLight.AddBottomLine();
+            //鍙崇澶�
+            rowLight.AddRightArrow();
+            rowLight.ButtonClickEvent += (sender, e) =>
+            {
+                var form = new DataCorrectionForm();
+                form.AddForm(this.deviceObj);
             };
         }
-        #endregion
+        #endregion
 
         #region 鈻� 鍙充笂瑙掕彍鍗昣________________________ 
-        /// <summary>
-        /// 鍒濆鍖栧彸涓婅鑿滃崟
-        /// </summary>
-        private void InitTopRightMenu()
-        {
-            //妫�娴嬫鍥炶矾鏄惁鎷ユ湁瀹氫綅鍔熻兘
-            if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(deviceObj) == false)
-            {
-                return;
-            }
-            var btnIcon = new MostRightIconControl(69, 69);
-            btnIcon.UnSelectedImagePath = "Item/More.png";
-            topFrameLayout.AddChidren(btnIcon);
-            btnIcon.InitControl();
-            btnIcon.ButtonClickEvent += ((sender, e) =>
-            {
-                //鏄剧ず鍙充笂瑙掕彍鍗曠晫闈�
-                this.ShowTopRightMenu();
-            });
-        }
-
-        /// <summary>
-        /// 鏄剧ず鍙充笂瑙掕彍鍗曠晫闈�
-        /// </summary>
-        private void ShowTopRightMenu()
-        {
-            var frame = new TopRightMenuControl(1, 1);
-            //瀹氫綅
-            string deviceMenu = Language.StringByID(R.MyInternationalizationString.uFixedPosition);
-            frame.AddRowMenu(deviceMenu, "Item/FixedPosition.png", "Item/FixedPositionSelected.png", () =>
-            {
-                //鍙戦�佸畾浣嶅姛鑳�
-                Common.LocalDevice.Current.SetFixedPositionCommand(deviceObj);
-            });
-        }
-
-        #endregion
-    }
+        /// <summary>
+        /// 鍒濆鍖栧彸涓婅鑿滃崟
+        /// </summary>
+        private void InitTopRightMenu()
+        {
+            //妫�娴嬫鍥炶矾鏄惁鎷ユ湁瀹氫綅鍔熻兘
+            if (HdlDeviceCommonLogic.Current.DeviceIsCanFixedPosition(deviceObj) == false)
+            {
+                return;
+            }
+            var btnIcon = new MostRightIconControl(69, 69);
+            btnIcon.UnSelectedImagePath = "Item/More.png";
+            topFrameLayout.AddChidren(btnIcon);
+            btnIcon.InitControl();
+            btnIcon.ButtonClickEvent += ((sender, e) =>
+            {
+                //鏄剧ず鍙充笂瑙掕彍鍗曠晫闈�
+                this.ShowTopRightMenu();
+            });
+        }
+
+        /// <summary>
+        /// 鏄剧ず鍙充笂瑙掕彍鍗曠晫闈�
+        /// </summary>
+        private void ShowTopRightMenu()
+        {
+            var frame = new TopRightMenuControl(1, 1);
+            //瀹氫綅
+            string deviceMenu = Language.StringByID(R.MyInternationalizationString.uFixedPosition);
+            frame.AddRowMenu(deviceMenu, "Item/FixedPosition.png", "Item/FixedPositionSelected.png", () =>
+            {
+                //鍙戦�佸畾浣嶅姛鑳�
+                HdlDeviceCommonLogic.Current.SetFixedPositionCommand(deviceObj);
+            });
+        }
+
+        #endregion
+    }
 }

--
Gitblit v1.8.0