File was renamed from HDL_ON/UI/UI2/2-Classification/Room/RoomPage.cs |
| | |
| | | /// <summary> |
| | | /// 当前窗体 |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | | static FrameLayout bodyView; |
| | | /// <summary> |
| | | /// 功能列表集合显示区域 |
| | | /// </summary> |
| | | //VerticalScrolViewLayout functionListView; |
| | | static VerticalScrolViewLayout functionListView; |
| | | #endregion |
| | | |
| | | #region |
| | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView,room.name).LoadTopView(); |
| | | |
| | | var functionListView =new VerticalScrolViewLayout() |
| | | functionListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(603-12), |
| | |
| | | |
| | | if (function.functionType == "RGB" || function.functionType == "Dimmer") |
| | | { |
| | | var functionDiv = new RoomControlZone(function) |
| | | var functionDiv = new FunctionControlZone(function) |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 1, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Tag = function.functionCategory.ToString() + "-" + function.functionType |
| | | Tag = function.functionCategory.ToString() + "-" + function.functionType + "-" + function.sid |
| | | }; |
| | | functionDiv.LoadFunctionDiv(); |
| | | functionListView.AddChidren(functionDiv); |
| | | } |
| | | else |
| | | { |
| | | var functionDiv = new RoomControlZone(function) |
| | | var functionDiv = new FunctionControlZone(function) |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 1, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Tag = function.functionCategory.ToString() + "-" + function.functionType |
| | | Tag = function.functionCategory.ToString() + "-" + function.functionType + "-" + function.sid |
| | | }; |
| | | functionDiv.LoadFunctionDiv(); |
| | | functionListView.AddChidren(functionDiv); |