old mode 100644
new mode 100755
| | |
| | | public VerticalScrolViewLayout middle = new VerticalScrolViewLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(1920 - 260 - 200 - 184), |
| | | Height = Application.GetRealHeight(Method.H - 260 - 200 - 184), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | |
| | |
| | | foreach (var sceneId in scenelist) |
| | | { |
| | | var scene = UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(sceneId); |
| | | if (scene == null)
|
| | | {
|
| | | continue;
|
| | | if (scene == null) |
| | | { |
| | | continue; |
| | | } |
| | | var sceneFramelayout = new FrameLayout |
| | | { |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | middle.AddChidren(sceneFramelayout); |
| | | |
| | | |
| | | var sceneIconBtn = new Button |
| | | { |
| | |
| | | Width = Application.GetRealWidth(850), |
| | | Height = Application.GetRealHeight(130), |
| | | X = Application.GetRealWidth(176 + 10), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | |
| | | LineColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | }; |
| | | sceneFramelayout.AddChidren(sceneRow); |
| | | |
| | |
| | | |
| | | var selectedBtn = new Button |
| | | { |
| | | Width = Application.GetRealWidth(58), |
| | | Height = Application.GetRealHeight(58), |
| | | Width = Application.GetMinRealAverage(60), |
| | | Height = Application.GetMinRealAverage(60), |
| | | X = Application.GetRealWidth(789), |
| | | UnSelectedImagePath = "ZigeeLogic/selected.png", |
| | | Visible = false, |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | | sceneRow.AddChidren(selectedBtn); |
| | | |
| | | var lineBtn = new Button |
| | | { |
| | | Y = sceneFramelayout.Height - 1, |
| | | Width = Application.GetRealWidth(850), |
| | | Height = 1, |
| | | X = Application.GetRealWidth(176 + 10), |
| | | BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | sceneFramelayout.AddChidren(lineBtn); |
| | | EventHandler<MouseEventArgs> sceneclick = (sender, e) => |
| | | { |
| | | tempScene = scene; |