陈嘉乐
2020-05-11 26cee91cc3332e09db5cadb9faf76612b1b0c081
ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
@@ -29,7 +29,6 @@
        FrameLayout listLogicFl = new FrameLayout();
        ///常开自动化列表上下滑动的控件
        VerticalRefreshLayout verticalRefresh = new VerticalRefreshLayout();
        public async void Show()
        {
            #region  界面的布局代码
@@ -141,7 +140,7 @@
            var addIconclickBtn = new Button
            {
                Width = Application.GetRealWidth(90+69+63),
                Width = Application.GetRealWidth(90 + 69 + 63),
                Height = Application.GetRealHeight(69),
                X = Application.GetRealWidth(800),
                Y = Application.GetRealHeight(60),
@@ -202,6 +201,21 @@
            };
            Read(true);
            #endregion
            DoorLockCommonInfo.LogicAction = (_bool) =>
            {
                try
                {
                    Application.RunOnMainThread(() =>
                    {
                        Send.CurrentDoorLock.IsDoorLockNormallyMode = _bool;
                        ModeView();
                    });
                }
                catch { }
            };
        }
        /// <summary>
        /// 常开模式开关切换图标界面
@@ -611,35 +625,6 @@
                };
            }
        }
        //public static Action<bool> action1=DoorLockCommonInfo.LogicAction;
        /// <summary>
        /// 定时更新常开模式(防止通过门锁关闭没及时刷新状态)
        /// </summary>
        //System.Threading.Thread updateThread;
        //public void UpdateModeIcon()
        //{
        //    updateThread = new System.Threading.Thread(() =>
        //    {
        //        while (this.Parent != null)
        //        {
        //            System.Threading.Thread.Sleep(1000);
        //            Application.RunOnMainThread(() =>
        //            {
        //                try
        //                {
        //                    ModeView();
        //                }
        //                catch { }
                //            });
        //        }
        //    });
        //    updateThread.Start();
        //}
    }
}