From 1cba5ec1959f9012c66f96254afb3206904ff671 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 25 三月 2021 13:27:01 +0800 Subject: [PATCH] 2021-3-25-1 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Matching.cs | 49 ++++--------------------------------------------- 1 files changed, 4 insertions(+), 45 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Matching.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Matching.cs index bb2af77..1a97eef 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Matching.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/Matching.cs @@ -180,10 +180,10 @@ //娴嬭瘯Text testBtn.MouseUpEventHandler += (sender, e) => { - var library = libraryList[index-1]; + var library = libraryList[index - 1]; var control = GetControl(spk, testBtn.TextID, library); //鍙戦�佹祴璇曠爜鍛戒护 - CodeTest(control); + Method.ThreadSend(control, (responsePackNew) => { }, "搴撶爜娴嬭瘯", "frame", this, null); if (code == 3) { //鏍囪鏈�鍚庨偅涓爜 if_bool = true; @@ -218,12 +218,12 @@ var control = GetControl(spk, testBtn.TextID, library); Method method = new Method(); //鍙戦�佸簱娣诲姞閬ユ帶鍣ㄥ懡浠� - method.ThreadAddControl(control, this, (cont) => + method.ThreadAddControl(control, this, (device) => { MainPage.BasePageView.RemoveViewByTag("PirView"); AddControlComplete addControlComplete = new AddControlComplete(); MainPage.BasePageView.AddChidren(addControlComplete); - addControlComplete.Show(cont, true); + addControlComplete.Show(device, true); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }); @@ -316,47 +316,6 @@ } return control; - } - - /// <summary> - /// 鍙戦�佸簱鐮佹祴璇曞懡浠� - /// </summary> - /// <param name="control"></param> - private void CodeTest(Control control) - { - - //鍔犺浇log - Loading loading = new Loading(); - this.AddChidren(loading); - HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; - loading.Start(); - new System.Threading.Thread(() => - { - try - { - responsePackNew = PirSend.CodeTest(control); - } - catch { } - finally - { - Application.RunOnMainThread(() => - { - loading.Hide(); - if (responsePackNew != null && responsePackNew.Code == "0" && responsePackNew.Data.ToString() != "") - { - - } - else - { - //Method method = new Method(); - //method.ErrorShow(responsePackNew); - } - - }); - } - - }) - { IsBackground = true }.Start(); } /// <summary> -- Gitblit v1.8.0