old mode 100755
new mode 100644
| | |
| | | refresview.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor;
|
| | | }
|
| | | }
|
| | | |
| | | foreach (var logic in Common.Logic.LogicList)
|
| | | {
|
| | |
|
| | | var fLayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(190 + 30), |
| | | Width = Application.GetRealWidth(1080 - 58), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | refresview.AddChidren(fLayout); |
| | |
|
| | | var logicRowlayout = new RowLayout
|
| | | {
|
| | |
| | | SubViewWidth = Application.GetRealWidth(184),//改变编辑控件宽度多少;
|
| | |
|
| | | };
|
| | | refresview.AddChidren(logicRowlayout);
|
| | |
|
| | |
|
| | | fLayout.AddChidren(logicRowlayout); |
| | |
|
| | | var logicnameBtn = new Button
|
| | | {
|
| | |
| | | };
|
| | | logicRowlayout.AddChidren(logicnameBtn);
|
| | |
|
| | |
|
| | | var logicswitchBtn = new Button
|
| | | {
|
| | | Width = Application.GetRealWidth(104),
|
| | |
| | |
|
| | | };
|
| | | logicRowlayout.AddChidren(logicswitchBtn);
|
| | |
|
| | |
|
| | |
|
| | | logicswitchBtn.MouseUpEventHandler += (sender1, e1) =>
|
| | | {
|
| | |
| | |
|
| | | };
|
| | |
|
| | |
|
| | | ///删除
|
| | | var del = new Button
|
| | | {
|
| | |
| | | };
|
| | | var line = new Button
|
| | | {
|
| | | Y = Application.GetRealHeight(215),
|
| | | Height = Application.GetRealHeight(5),
|
| | | Y = fLayout.Height - 1, |
| | | Height = 1, |
| | | X = Application.GetRealWidth(58), |
| | | Width = Application.GetRealWidth(1080 - 58),
|
| | | BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
|
| | | X = Application.GetRealWidth(58),
|
| | | };
|
| | | logicRowlayout.AddChidren(line);
|
| | | fLayout.AddChidren(line); |
| | | }
|
| | |
|
| | | }
|