| | |
| | | Y = Application.GetRealHeight(103), |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealHeight(21 + 44), |
| | | BackgroundImagePath = "LogicIcon/bjicon.png", |
| | | //BackgroundImagePath = "LogicIcon/bjicon.png", |
| | | }; |
| | | fLayout.AddChidren(bghFrameLyout); |
| | | |
| | |
| | | { |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5); |
| | | bghFrameLyout.AddChidren(vvBgh); |
| | | |
| | | bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png"; |
| | | } |
| | | else |
| | | { |
| | |
| | | bghFrameLyout.AddChidren(areaBgh); |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * roomList.Count); |
| | | areaBgh.Height = Application.GetRealHeight(44 * roomList.Count); |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{roomList.Count+1}.png"; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | |
| | | DeviceListView(vv, list); |
| | | }; |
| | | |
| | | if (roomList.Count-1==i) { |
| | | ///改变最后那条一个线的颜色,界面显示效果作用; |
| | | areaView.btnLine.BackgroundColor = CSS.CSS_Color.view; |
| | | } |
| | | } |
| | | }; |
| | | funAllAreaView.btnText1.MouseUpEventHandler += roomClick; |
| | |
| | | Y = Application.GetRealHeight(103), |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealHeight(21 + 44), |
| | | BackgroundImagePath = "LogicIcon/bjicon.png", |
| | | //BackgroundImagePath = "LogicIcon/bjicon5.png", |
| | | }; |
| | | fLayout.AddChidren(bghFrameLyout); |
| | | |
| | |
| | | { |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5); |
| | | bghFrameLyout.AddChidren(vvBgh); |
| | | |
| | | bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png"; |
| | | } |
| | | else |
| | | { |
| | | bghFrameLyout.AddChidren(areaBgh); |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * deviceTypeList.Count); |
| | | areaBgh.Height = Application.GetRealHeight(44 * deviceTypeList.Count); |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{deviceTypeList.Count+1}.png"; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | var lists = LogicMethod.GetShowDeviceList(typeFunctionList, functionList); |
| | | DeviceListView(vv, lists); |
| | | }; |
| | | |
| | | if (deviceTypeList.Count - 1 == i) |
| | | { |
| | | ///改变最后那条一个线的颜色,界面显示效果作用; |
| | | areaView.btnLine.BackgroundColor = CSS.CSS_Color.view; |
| | | } |
| | | } |
| | | }; |
| | | funAllAreaView.btnText2.MouseUpEventHandler += funClick; |
| | |
| | | funView.btnDeviceName.Text = dev.name; |
| | | funView.btnRoomName.Text = dev.GetRoomListName(); |
| | | funView.btnClick.MouseUpEventHandler += (sen,e) => { |
| | | DeviceFunList deviceFunList = new DeviceFunList(); |
| | | MainPage.BasePageView.AddChidren(deviceFunList); |
| | | deviceFunList.Show(dev,0,false,if_type); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | if (if_type == LogicMethod.condition_if) { |
| | | ConditionDeviceFunList conditionDeviceFunList = new ConditionDeviceFunList(); |
| | | MainPage.BasePageView.AddChidren(conditionDeviceFunList); |
| | | conditionDeviceFunList.Show(dev, 0, false); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } else { |
| | | TargetDeviceFunList targetDeviceFunList = new TargetDeviceFunList(); |
| | | MainPage.BasePageView.AddChidren(targetDeviceFunList); |
| | | targetDeviceFunList.Show(dev, 0, false); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | |
| | | }; |
| | | } |
| | | } |