| | |
| | | Button roomTextButton = new Button(); |
| | | Button devicetypeButton = new Button(); |
| | | VerticalScrolViewLayout middle; |
| | | HorizontalScrolViewLayout devicetypehorizontalScrol1; |
| | | FrameLayout clickframeLayout = new FrameLayout(); |
| | | Button clickbutton = new Button(); |
| | | Button clicktextcolcrbutton = new Button(); |
| | |
| | | }; |
| | | this.AddChidren(roomhorizontalScrol); |
| | | |
| | | var devicetypehorizontalScrol1 = new HorizontalScrolViewLayout() |
| | | devicetypehorizontalScrol1 = new HorizontalScrolViewLayout() |
| | | { |
| | | Width = Application.GetRealWidth(1080 - 58 - 200), |
| | | Height = Application.GetRealHeight(280), |
| | |
| | | } |
| | | list.Add(device); |
| | | } |
| | | if (list.Count == 0) |
| | | { |
| | | devicetypehorizontalScrol.Height = 0; |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | else |
| | | { |
| | | devicetypehorizontalScrol.Height = Application.GetRealHeight(280); |
| | | devicetypehorizontalScrol1.Height = Application.GetRealHeight(280); |
| | | middle.Height = Application.GetRealHeight(1920 - 40) - devicetypehorizontalScrol.Bottom; |
| | | } |
| | | AllDeviceTypeView(list, devicetypehorizontalScrol); |
| | | |
| | | } |
| | |
| | | continue; |
| | | } |
| | | list.Add(device); |
| | | } |
| | | if (list.Count == 0) |
| | | { |
| | | devicetypehorizontalScrol.Height = 0; |
| | | devicetypehorizontalScrol1.Height = 0; |
| | | middle.Height = 0; |
| | | } |
| | | else |
| | | { |
| | | devicetypehorizontalScrol.Height = Application.GetRealHeight(280); |
| | | devicetypehorizontalScrol1.Height = Application.GetRealHeight(280); |
| | | middle.Height = Application.GetRealHeight(1920 - 40) - devicetypehorizontalScrol.Bottom; |
| | | } |
| | | AllDeviceTypeView(list, devicetypehorizontalScrol); |
| | | |
| | |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | var ignoreTime = new IgnoreTime(); |
| | | var ignoreTime = new TemplateIgnore(); |
| | | UserView.HomePage.Instance.AddChidren(ignoreTime); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | ignoreTime.Show(common, btnclose.Text, edit, timevalue); |
| | |
| | | btnclose.TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = false; |
| | | var ignoreTime = new IgnoreTime(); |
| | | var ignoreTime = new TemplateIgnore(); |
| | | UserView.HomePage.Instance.AddChidren(ignoreTime); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | ignoreTime.Show(common, btntimeout.Text, edit, timevalue); |
| | |
| | | break; |
| | | case DeviceType.DoorLock: |
| | | { |
| | | flMain.RemoveFromParent(); |
| | | var memberList = new MemberList(); |
| | | UserView.HomePage.Instance.AddChidren(memberList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | MemberList.action += () => { flMain.RemoveFromParent(); }; |
| | | memberList.Show(common); |
| | | } |
| | | break; |