old mode 100755
new mode 100644
| | |
| | |
|
| | | listview = new VerticalScrolViewLayout();
|
| | | listview.Height = Application.GetRealHeight(1981 - 184);
|
| | | bodyFrameLayout.AddChidren(listview);
|
| | | bodyFrameLayout.AddChidren(listview); |
| | | listview.ScrollEnabled = false;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | //添加屏幕亮度级别控件
|
| | | this.AddScreenBrightnesLevelControl();
|
| | |
|
| | | //添加背光灯亮度控件【暂时不需要,可能后期新风面板的这个颜色要补回来】
|
| | | this.AddBackLightControl();
|
| | | //【暂时不需要,可能后期新风面板的这个颜色要补回来】
|
| | | //this.FinishInitControl(listview, energyModeInfo.enable);
|
| | | //添加新风面板的颜色
|
| | | this.AddColorControl();
|
| | |
|
| | | //保存
|
| | | var btnSave = new BottomClickButton();
|
| | |
| | | /// <summary>
|
| | | /// 添加背光颜色控件
|
| | | /// </summary>
|
| | | private void AddBackLightControl()
|
| | | private void AddColorControl()
|
| | | {
|
| | | var btnEspace = new NormalViewControl(600, 58, true);
|
| | | btnEspace.X = ControlCommonResourse.XXLeft;
|
| | |
| | | frameColor.Height = this.GetPictrueRealSize(79);
|
| | | frameColor.Gravity = Gravity.CenterVertical;
|
| | | frameColor.X = frameBack.Width - ControlCommonResourse.XXLeft - Application.GetRealHeight(262);
|
| | | frameBack.AddChidren(frameColor);
|
| | |
|
| | | //颜色
|
| | | frameBack.AddChidren(frameColor); |
| | | |
| | | //颜色 |
| | | var btnColorView = new NormalViewControl(Application.GetRealHeight(110), this.GetPictrueRealSize(49), false);
|
| | | btnColorView.Gravity = Gravity.CenterVertical;
|
| | | btnColorView.TextAlignment = TextAlignment.CenterRight;
|
| | |
| | | btnRight.Y = Application.GetRealHeight(5);
|
| | | btnRight.X = frameColor.Width - this.GetPictrueRealSize(58);
|
| | | frameColor.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
|
| | | btnRight.Y += this.GetPictrueRealSize(8);
|
| | |
|
| | | btnRight.Y += this.GetPictrueRealSize(8); |
| | | |
| | | frameColor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new PanelColorSelectForm();
|
| | | form.AddForm(R1, G1, B1);
|
| | | form.FinishSelectColorEvent += (Rcolor, Gcolor, Bcolor) =>
|
| | | {
|
| | | R1 = Rcolor;
|
| | | G1 = Gcolor;
|
| | | B1 = Bcolor;
|
| | |
|
| | | this.keyColorData.OpenColorR = Convert.ToString(Rcolor, 16);
|
| | | this.keyColorData.OpenColorG = Convert.ToString(Gcolor, 16);
|
| | | this.keyColorData.OpenColorB = Convert.ToString(Bcolor, 16);
|
| | |
|
| | | btnColor.BackgroundColor = this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor);
|
| | | };
|
| | | PanelColor(btnColor, R1, G1, B1);
|
| | | }; |
| | | btnColorView.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | PanelColor(btnColor, R1, G1, B1);
|
| | | }; |
| | | btnColor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | PanelColor(btnColor, R1, G1, B1);
|
| | | }; |
| | | btnColorLine.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | PanelColor(btnColor, R1, G1, B1);
|
| | | }; |
| | | btnRight.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | PanelColor(btnColor, R1, G1, B1);
|
| | | };
|
| | | }
|
| | |
|
| | | /// <summary> |
| | | /// PanelColorSelectForm |
| | | /// </summary>
|
| | | private void PanelColor(NormalViewControl btnColor, int R1, int G1, int B1) |
| | | { |
| | | var form = new PanelColorSelectForm(); |
| | | form.AddForm(R1, G1, B1); |
| | | form.FinishSelectColorEvent += (Rcolor, Gcolor, Bcolor) => |
| | | { |
| | | R1 = Rcolor; |
| | | G1 = Gcolor; |
| | | B1 = Bcolor; |
| | | |
| | | this.keyColorData.OpenColorR = Convert.ToString(Rcolor, 16); |
| | | this.keyColorData.OpenColorG = Convert.ToString(Gcolor, 16); |
| | | this.keyColorData.OpenColorB = Convert.ToString(Bcolor, 16); |
| | | |
| | | btnColor.BackgroundColor = this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor); |
| | | }; |
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | else
|
| | | {
|
| | | frameBack.Height -= value;
|
| | | }
|
| | | //容器补充
|
| | | this.FinishInitControl(listview, energyModeInfo.enable);
|
| | | } |
| | | };
|
| | | if (energyModeInfo.enable == true)
|
| | | {
|