| | |
| | | FrameLayout listLogicFl = new FrameLayout(); |
| | | ///常开自动化列表上下滑动的控件 |
| | | VerticalRefreshLayout verticalRefresh = new VerticalRefreshLayout(); |
| | | |
| | | public async void Show() |
| | | { |
| | | #region 界面的布局代码 |
| | |
| | | |
| | | 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), |
| | |
| | | }; |
| | | Read(true); |
| | | #endregion |
| | | |
| | | DoorLockCommonInfo.LogicAction = (_bool) => |
| | | { |
| | | |
| | | try |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | Send.CurrentDoorLock.IsDoorLockNormallyMode = _bool; |
| | | ModeView(); |
| | | }); |
| | | } |
| | | catch { } |
| | | }; |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 常开模式开关切换图标界面 |
| | |
| | | };
|
| | | } |
| | | } |
| | | |
| | | |
| | | //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(); |
| | | //} |
| | | |
| | | |
| | | } |
| | | } |