From 1a0a7f736c6d2e7129e7591d40bed67ec7c0f09a Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 05 二月 2021 10:47:42 +0800
Subject: [PATCH] 2021-02-05 1.编译冲突修改

---
 HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/SearchDevicePage.cs |   64 ++++++++++++++++---------------
 1 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/SearchDevicePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/SearchDevicePage.cs
index 2077630..1d11b35 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/SearchDevicePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/SearchDevice/SearchDevicePage.cs
@@ -4,7 +4,7 @@
 using Newtonsoft.Json;
 using HDL_ON.Entity;
 using System.Collections.Generic;
-
+using HDL_ON.DriverLayer;
 
 namespace HDL_ON.UI
 {
@@ -30,41 +30,43 @@
             };
             bodyView.AddChidren(contentView);
 
+          
+
             contentView.BeginHeaderRefreshingAction += () =>
             {
                 deviceIpList.Clear();
                 contentView.RemoveAll();
                 //DriverLayer.Control.ins.ChangeCommunicationMode(DriverLayer.CommunicationMode.local_BusUdp);
-//                UdpSocket._BusSocket.SearchNetDeviceAction = (jto) =>
-//                {
-//                    var device = JsonConvert.DeserializeObject<DeviceModule>(jto.ToString());
-//                    if (device != null)
-//                    {
-//                        lock (deviceIpList)
-//                        {
-//                            if (!deviceIpList.Contains(device.ip_address))
-//                            {
-//                                deviceIpList.Add(device.ip_address);
-//                                MainPage.Log($"鎼滅储鍒扮綉缁滆澶囷細{device.ip_address}");
-//                                Application.RunOnMainThread(() =>
-//                                {
-//#if DEBUG
-//#else
-//                                    if(device.gateway_type== 4)
-//#endif
-//                                    {
-//                                        LoadRow(device);
-//                                    }
-//                                });
-//                            }
-//                            else
-//                            {
-//                                MainPage.Log($"宸插姞杞借IP璁惧:{device.ip_address}");
-//                            }
-//                        }
-//                    }
-//                };
-                DriverLayer.Control.Ins.myUdp.SearchLocalGateway();
+                //                UdpSocket._BusSocket.SearchNetDeviceAction = (jto) =>
+                //                {
+                //                    var device = JsonConvert.DeserializeObject<DeviceModule>(jto.ToString());
+                //                    if (device != null)
+                //                    {
+                //                        lock (deviceIpList)
+                //                        {
+                //                            if (!deviceIpList.Contains(device.ip_address))
+                //                            {
+                //                                deviceIpList.Add(device.ip_address);
+                //                                MainPage.Log($"鎼滅储鍒扮綉缁滆澶囷細{device.ip_address}");
+                //                                Application.RunOnMainThread(() =>
+                //                                {
+                //#if DEBUG
+                //#else
+                //                                    if(device.gateway_type== 4)
+                //#endif
+                //                                    {
+                //                                        LoadRow(device);
+                //                                    }
+                //                                });
+                //                            }
+                //                            else
+                //                            {
+                //                                MainPage.Log($"宸插姞杞借IP璁惧:{device.ip_address}");
+                //                            }
+                //                        }
+                //                    }
+                //                };
+                new Control_Udp().SearchLocalGateway();
                 contentView.EndHeaderRefreshing();
             };
 

--
Gitblit v1.8.0