old mode 100644
new mode 100755
| | |
| | | frameWhiteBack.AddChidren(frameAcBack); |
| | | |
| | | //新风自动Layout【为了扩大点击范围】 |
| | | var autoFrameLayout = new NormalViewControl(213 + 40, 63 + 80, true);
|
| | | autoFrameLayout.X = Application.GetRealWidth(275 - 20);
|
| | | var autoFrameLayout = new NormalViewControl(213 + 40, 63 + 80, true); |
| | | autoFrameLayout.X = Application.GetRealWidth(275 - 20); |
| | | autoFrameLayout.Y = Application.GetRealHeight(821 - 20); |
| | | frameWhiteBack.AddChidren(autoFrameLayout); |
| | | autoFrameLayout.ButtonClickEvent += HandlerAuto; |
| | |
| | | btnAuto.IsBold = false; |
| | | btnAuto.TextAlignment = TextAlignment.Center; |
| | | frameWhiteBack.AddChidren(btnAuto);
|
| | |
|
| | | |
| | | this.listControl.Add(btnAuto);
|
| | | btnAuto.ButtonClickEvent += HandlerAuto; |
| | | btnAuto.ButtonClickEvent += HandlerAuto;
|
| | | |
| | | //自动下划线(第2个,listControl【1】) |
| | | var btnAutoLine = new NormalViewControl(72, 12, true);
|
| | |
| | | btnAutoLine.ButtonClickEvent += HandlerAuto; |
| | | |
| | | //新风手动Layout【为了扩大点击范围】 |
| | | var manualFrameLayout = new NormalViewControl(213 + 40, 63 + 80, true);
|
| | | manualFrameLayout.X = Application.GetRealWidth(488 - 20);
|
| | | var manualFrameLayout = new NormalViewControl(213 + 40, 63 + 80, true); |
| | | manualFrameLayout.X = Application.GetRealWidth(488 - 20); |
| | | manualFrameLayout.Y = Application.GetRealHeight(821 - 20); |
| | | frameWhiteBack.AddChidren(manualFrameLayout); |
| | | manualFrameLayout.ButtonClickEvent += HandlerManual; |
| | |
| | | btnManual.TextAlignment = TextAlignment.Center; |
| | | frameWhiteBack.AddChidren(btnManual);
|
| | | this.listControl.Add(btnManual);
|
| | | btnManual.ButtonClickEvent += HandlerManual; |
| | | btnManual.ButtonClickEvent += HandlerManual;
|
| | | |
| | | //手动下划线(第4个,listControl【3】) |
| | | var btnManualLine = new NormalViewControl(72, 12, true);
|
| | |
| | | if (freshAirDev.currentFanStatus == 0) |
| | | { |
| | | return; |
| | | }
|
| | | } |
| | | if (freshAirDev.currentFanMode == 5) |
| | | { |
| | | var msgContr = new ShowMsgControl(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.AutoModeForbiddenOperate)); |
| | |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void HandlerAuto(object sender, MouseEventArgs e)
|
| | | private void HandlerAuto(object sender, MouseEventArgs e) |
| | | { |
| | | if (freshAirDev.currentFanStatus == 0) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void HandlerManual(object sender, MouseEventArgs e)
|
| | | private void HandlerManual(object sender, MouseEventArgs e) |
| | | { |
| | | if (freshAirDev.currentFanStatus == 0) |
| | | { |
| | |
| | | }
|
| | | }
|
| | | }
|
| | | this.listControl[0].Enable = true;
|
| | | this.listControl[2].Enable = true;
|
| | | this.listControl[4].Enable = true;
|
| | | this.listControl[5].Enable = true;
|
| | | this.listControl[6].Enable = true;
|
| | | this.listControl[0].Enable = true; |
| | | this.listControl[2].Enable = true; |
| | | this.listControl[4].Enable = true; |
| | | this.listControl[5].Enable = true; |
| | | this.listControl[6].Enable = true; |
| | | return false;
|
| | | } |
| | | #endregion |
| | |
| | | this.listControl[3].Visible = false; |
| | | this.listControl[4].IsSelected = false; |
| | | this.listControl[5].IsSelected = false; |
| | | this.listControl[6].IsSelected = false; |
| | | this.listControl[5].Enable = true;
|
| | | this.listControl[6].IsSelected = false;
|
| | | this.listControl[5].Enable = true; |
| | | //设置状态文字
|
| | | this.SetStatuText(Language.StringByID(R.MyInternationalizationString.Close));
|
| | | return; |