From 965290476c027deb96891cde1095d9a100581a6b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 20 二月 2020 09:13:32 +0800 Subject: [PATCH] 2020-02-20 1.优化更新。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs | 36 ++++++++++++++++++++++++++---------- 1 files changed, 26 insertions(+), 10 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs index a78854d..7a6f121 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/System/SystemRemote.cs @@ -12,16 +12,32 @@ { static SystemRemote () { - //濡傛灉鍦ㄨ繙绋嬭繛鎺ョ殑鎯呭喌涓嬶紝灏变細鏈夊畾鏃跺彂閫佸績璺冲寘 - System.Threading.Tasks.Task.Run (() => { - while (true) { - System.Threading.Thread.Sleep (10 * 1000); - if (CommonPage.IsRemote) { - Control.ControlBytesSend (Command.ReadRemark, 0, 0, new byte [] { }, SendCount.Zero); - Console.WriteLine ("蹇冭烦鍖�"); - } - } - }); + //鍚庨潰鑰冭檻妫�娴嬬綉鍏虫槸鍚﹀湪绾匡紝鍙互杩欓噷淇敼鏂规硶妫�娴� + ////濡傛灉鍦ㄨ繙绋嬭繛鎺ョ殑鎯呭喌涓嬶紝灏变細鏈夊畾鏃跺彂閫佸績璺冲寘 + //System.Threading.Tasks.Task.Run (() => { + // while (true) { + // System.Threading.Thread.Sleep (10 * 1000); + // if (CommonPage.IsRemote) { + // Control.ControlBytesSend (Command.ReadRemark, 0, 0, new byte [] { }, SendCount.Zero); + // Console.WriteLine ("蹇冭烦鍖�"); + // } + // } + //}); + + ////濡傛灉鍦ㄨ繙绋嬭繛鎺ョ殑鎯呭喌涓嬶紝灏变細鏈夊畾鏃跺彂閫佸績璺冲寘 + //System.Threading.Tasks.Task.Run (() => { + // while (true) { + // System.Threading.Thread.Sleep (10 * 1000); + // if (CommonPage.IsRemote) { + // Console.WriteLine ("蹇冭烦鍖�"); + // byte [] backBytes = Control.ControlBytesSendHasReturn (Command.ReadRemark, 0, 0, new byte [] { }); + // if (backBytes != null) { + // Console.WriteLine ("蹇冭烦鍖� 鏀跺埌鍥炲"); + // } + + // } + // } + //}); } /// <summary> /// 鍔犲瘑绠楁硶 -- Gitblit v1.8.0