| | |
| | | { |
| | | public class ACControlBase |
| | | { |
| | | #region ◆ 变量_____________________________ |
| | | /// <summary> |
| | | /// 最低温度 16 |
| | | /// </summary> |
| | | public const int Temperature_Low=16; |
| | | /// <summary> |
| | | /// 最高温度 32å |
| | | /// </summary> |
| | | public const int Temperature_High = 32; |
| | | /// <summary> |
| | | /// 默认温度 |
| | | /// </summary> |
| | | public const int Temperature_Default = 26; |
| | | |
| | | #endregion |
| | | |
| | | #region ◆ 获取模式名称_______________________ |
| | | /// <summary> |
| | |
| | | |
| | | //public static ZigBee.Device.AC.AcMode GetModeByModeId(int modeId) |
| | | //{ |
| | | //if(modeId==) |
| | | //if(modeId==) |
| | | //} |
| | | |
| | | #endregion |
| | |
| | | #region ◆ 获取温度__________________________ |
| | | |
| | | public static int GetCurrentModeTemperature(ZigBee.Device.AC ac) |
| | | { |
| | | |
| | | if(ac.currentSystemMode==3) |
| | | { |
| | | |
| | | if (ac.currentSystemMode == 3 || ac.currentSystemMode == 8) |
| | | { |
| | | return ac.currentCoolingSetpoint; |
| | | } |
| | | else if(ac.currentSystemMode==4) |
| | | else if (ac.currentSystemMode == 4) |
| | | { |
| | | return ac.currentHeatingSetpoint; |
| | | } |
| | | else if (ac.currentSystemMode == 1) |
| | | { |
| | | return ac.currentAutoSetpoint; |
| | | } |
| | | return ac.currentLocalTemperature; |
| | | } |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | string msg = Language.StringByID(R.MyInternationalizationString.TheACIsClose); |
| | | var tip = new Phone.UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Tip, msg); |
| | | tip.Show(); |
| | | //var tip = new Phone.UserCenter.TipViewControl(msg, 1000, 1); |
| | | //tip.ShowView(); |
| | | }); |
| | | } |
| | | |