From 0fa54f0c6ad692834c1c518a9ed481cb06cc8db7 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期日, 06 六月 2021 10:45:24 +0800
Subject: [PATCH] 兆观传感器

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
index c7da6e2..00b0713 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
@@ -49,10 +49,9 @@
             new System.Threading.Thread(() => {
                 try
                 {
-                    var pm = new DAL.Server.HttpServerRequest();
-                    //var result = pm.Get3tyBindBrandList
+                    var pm = new HttpServerRequest();
                     var pack = pm.Get3TyBrandDeviceList(brand.productPlatform, brand.productBrand);
-                    if (pack.Code == DAL.Server.StateCode.SUCCESS)
+                    if (pack.Code == StateCode.SUCCESS)
                     {
                         var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrandDevice>>(pack.Data.ToString());
                         Application.RunOnMainThread(() =>
@@ -147,6 +146,13 @@
                                 refreshView.BeginHeaderRefreshing();
                             }; 
                             break;
+                        case SPK.SenesorMegahealth:
+                            var form1 = new AddSenesorMegahealthDirection1Page();
+                            form1.AddForm(device);
+                            form1.AddDeviceEvent = (functionObj) => {
+                                refreshView.BeginHeaderRefreshing();
+                            };
+                            break;
                     }
                 };
             }

--
Gitblit v1.8.0