| | |
| | | /// <summary> |
| | | /// The action. |
| | | /// </summary> |
| | | public Action action; |
| | | public Action<DeviceUI, Common.Room> action; |
| | | ///// <summary> |
| | | ///// The top view. |
| | | ///// </summary> |
| | |
| | | { |
| | | ZbGateway.StatusList.Remove(this); |
| | | UserView.HomePage.Instance.ScrollEnabled = true; |
| | | //action(); |
| | | //action = null; |
| | | action(device, room); |
| | | action = null; |
| | | if (IsDrawerLockMode) |
| | | { |
| | | CommonPage.Instance.IsDrawerLockMode = false; |
| | |
| | | UserView.HomePage.Instance.AddChidren(detailInfo); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | detailInfo.Show(device, room); |
| | | detailInfo.EditAction = (d,r) => |
| | | detailInfo.EditAction += (curDev, curRoom) => |
| | | { |
| | | Show(device, room); |
| | | Show(curDev, curRoom); |
| | | }; |
| | | } |
| | | |
| | |
| | | Height = Application.GetMinReal(104),
|
| | | UnSelectedImagePath = "Item/ProgressBubbles.png",
|
| | | Visible = false,
|
| | | Gravity = Gravity.CenterHorizontal
|
| | | Gravity = Gravity.CenterHorizontal,
|
| | | TextSize = 14, |
| | | IsBold = true, |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor
|
| | | };
|
| | | layout.AddChidren(ProgressBtn);
|
| | | } |