| | |
| | | using System; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using Shared; |
| | | using Shared.Common; |
| | |
| | | { |
| | | Tag = "Logic"; |
| | | } |
| | | public void Show() |
| | | public void Show() |
| | | { |
| | | |
| | | #region 最上面的布局代码 |
| | |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | X = Application.GetRealWidth(176), |
| | | Width = Application.GetRealWidth(400), |
| | | Width = Application.GetRealWidth(600), |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | |
| | | timeiconBtn.MouseUpEventHandler += timeclick; |
| | | timerow.MouseUpEventHandler += timeclick; |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | #region ----设备状态条件---- |
| | | var deviceframelayout = new FrameLayout |
| | | { |
| | |
| | | |
| | | EventHandler<MouseEventArgs> devicestateclick = (sender, e) => |
| | | { |
| | | Common.Logic.LogicDviceList.Clear(); |
| | | if (Common.Logic.LogicDviceList.Count == 0) |
| | | { |
| | | Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | } |
| | | var deviceStateCondition = new DeviceStateCondition(); |
| | | UserView.HomePage.Instance.AddChidren(deviceStateCondition); |
| | | UserView.HomePage.Instance.PageIndex += 1; |