| | |
| | | /// <summary> |
| | | /// 功能类型按钮 |
| | | /// </summary> |
| | | private FunctionButton functionTypeIMG; |
| | | //private FunctionButton functionTypeIMG; |
| | | /// <summary> |
| | | /// 功能类型 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 设备类型RowLayout |
| | | /// </summary> |
| | | private FrameLayout typeRowLayout; |
| | | //private FrameLayout typeRowLayout; |
| | | /// <summary> |
| | | /// 楼层 |
| | | /// </summary> |
| | |
| | | |
| | | foreach (var deviceType in typeIdDic) |
| | | { |
| | | typeRowLayout = new FrameLayout() |
| | | var typeRowLayout = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(220), |
| | | }; |
| | | functionTypeScrowView.AddChidren(typeRowLayout); |
| | | |
| | | functionTypeIMG = new FunctionButton() |
| | | var functionTypeIMG = new FunctionButton() |
| | | { |
| | | Tag = deviceType.Key |
| | | }; |
| | |
| | | |
| | | functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | |
| | | if (typeRowLayout.ChildrenCount == 1) |
| | | if (functionTypeScrowView.ChildrenCount == 1) |
| | | { |
| | | ShowSameTypeFunction(functionTypeIMG.ImageBtn, null); |
| | | } |