ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
@@ -4,42 +4,48 @@ <MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.M7BBB18B19152766" /> <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/UserView/UserPage.cs"> <Files> <File FileName="Shared/Phone/UserView/UserPage.cs" Line="298" Column="6" /> <File FileName="Shared/Phone/UserView/HomePage.cs" /> <File FileName="Shared/R.cs" /> <File FileName="GateWay.Droid/Assets/Language.ini" /> <File FileName="Shared/Phone/Device/Light/DimmableLightControl.cs" Line="411" Column="15" /> <File FileName="Shared/Phone/Device/Category/Category.cs" Line="1354" Column="47" /> <File FileName="Shared/Phone/Device/AC/ACControl.cs" Line="422" Column="61" /> <File FileName="Shared/Phone/UserView/UserHomeView.cs" Line="1" Column="1" /> <File FileName="Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs" Line="46" Column="1" /> <File FileName="Shared/Common/CommonPage.cs" Line="60" Column="99" /> <File FileName="Shared/Phone/UserView/UserPage.cs" Line="251" Column="30" /> </Files> <Pads> <Pad Id="ProjectPad"> <State name="__root__"> <Node name="GateWay" expanded="True"> <Node name="GateWay.Droid" expanded="True"> <Node name="Assets" expanded="True" /> <Node name="Assets" expanded="True"> <Node name="Phone" expanded="True" /> </Node> <Node name="Home.IOS" expanded="True" /> </Node> <Node name="Shared" expanded="True"> <Node name="Common" expanded="True" /> <Node name="Phone" expanded="True"> <Node name="Device" expanded="True"> <Node name="Account" expanded="True" /> <Node name="AC" expanded="True" /> <Node name="Category" expanded="True" /> <Node name="CommonForm" expanded="True" /> <Node name="DeviceLogic" expanded="True" /> <Node name="Light" expanded="True" /> <Node name="Room" expanded="True" /> </Node> <Node name="UserCenter" expanded="True"> <Node name="Abount" expanded="True" /> <Node name="CommonBase" expanded="True"> <Node name="Form" expanded="True"> <Node name="Base" expanded="True" /> <Node name="Logic" expanded="True" /> </Node> </Node> <Node name="UserMain" expanded="True" /> </Node> <Node name="UserView" expanded="True"> <Node name="UserPage.cs" selected="True" /> </Node> <Node name="ZigBee" expanded="True"> <Node name="Common" expanded="True" /> <Node name="Device" expanded="True" /> </Node> </Node> </Node> ZigbeeApp/GateWay.Droid/Assets/Language.ini
@@ -693,7 +693,7 @@ 11019=分享的 11020=选择图标 11021=保存 11022=提示 11022=提醒 11023=取消 11024=没有场景 {\r\n} 请点击右上角添加 11025=设置 @@ -705,6 +705,7 @@ 11031=添加执行目标 11032=选择区域 11033=选择场景图片 11034=确定删除吗? 12100=未知设备 ZigbeeApp/GateWay.Droid/Assets/Phone/Item/Switch.pngZigbeeApp/GateWay.Droid/Assets/Phone/Item/SwitchSelected.pngZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs
@@ -1698,44 +1698,44 @@ public partial class Color { // aapt resource value: 0x7f0d0051 public const int abc_background_cache_hint_selector_material_dark = 2131558481; // aapt resource value: 0x7f0d0052 public const int abc_background_cache_hint_selector_material_light = 2131558482; public const int abc_background_cache_hint_selector_material_dark = 2131558482; // aapt resource value: 0x7f0d0053 public const int abc_btn_colored_borderless_text_material = 2131558483; public const int abc_background_cache_hint_selector_material_light = 2131558483; // aapt resource value: 0x7f0d0054 public const int abc_btn_colored_text_material = 2131558484; public const int abc_btn_colored_borderless_text_material = 2131558484; // aapt resource value: 0x7f0d0055 public const int abc_color_highlight_material = 2131558485; public const int abc_btn_colored_text_material = 2131558485; // aapt resource value: 0x7f0d0056 public const int abc_hint_foreground_material_dark = 2131558486; public const int abc_color_highlight_material = 2131558486; // aapt resource value: 0x7f0d0057 public const int abc_hint_foreground_material_light = 2131558487; public const int abc_hint_foreground_material_dark = 2131558487; // aapt resource value: 0x7f0d0058 public const int abc_hint_foreground_material_light = 2131558488; // aapt resource value: 0x7f0d0000 public const int abc_input_method_navigation_guard = 2131558400; // aapt resource value: 0x7f0d0058 public const int abc_primary_text_disable_only_material_dark = 2131558488; // aapt resource value: 0x7f0d0059 public const int abc_primary_text_disable_only_material_light = 2131558489; public const int abc_primary_text_disable_only_material_dark = 2131558489; // aapt resource value: 0x7f0d005a public const int abc_primary_text_material_dark = 2131558490; public const int abc_primary_text_disable_only_material_light = 2131558490; // aapt resource value: 0x7f0d005b public const int abc_primary_text_material_light = 2131558491; public const int abc_primary_text_material_dark = 2131558491; // aapt resource value: 0x7f0d005c public const int abc_search_url_text = 2131558492; public const int abc_primary_text_material_light = 2131558492; // aapt resource value: 0x7f0d005d public const int abc_search_url_text = 2131558493; // aapt resource value: 0x7f0d0001 public const int abc_search_url_text_normal = 2131558401; @@ -1746,29 +1746,29 @@ // aapt resource value: 0x7f0d0003 public const int abc_search_url_text_selected = 2131558403; // aapt resource value: 0x7f0d005d public const int abc_secondary_text_material_dark = 2131558493; // aapt resource value: 0x7f0d005e public const int abc_secondary_text_material_light = 2131558494; public const int abc_secondary_text_material_dark = 2131558494; // aapt resource value: 0x7f0d005f public const int abc_tint_btn_checkable = 2131558495; public const int abc_secondary_text_material_light = 2131558495; // aapt resource value: 0x7f0d0060 public const int abc_tint_default = 2131558496; public const int abc_tint_btn_checkable = 2131558496; // aapt resource value: 0x7f0d0061 public const int abc_tint_edittext = 2131558497; public const int abc_tint_default = 2131558497; // aapt resource value: 0x7f0d0062 public const int abc_tint_seek_thumb = 2131558498; public const int abc_tint_edittext = 2131558498; // aapt resource value: 0x7f0d0063 public const int abc_tint_spinner = 2131558499; public const int abc_tint_seek_thumb = 2131558499; // aapt resource value: 0x7f0d0064 public const int abc_tint_switch_track = 2131558500; public const int abc_tint_spinner = 2131558500; // aapt resource value: 0x7f0d0065 public const int abc_tint_switch_track = 2131558501; // aapt resource value: 0x7f0d0004 public const int accent_material_dark = 2131558404; @@ -1815,8 +1815,8 @@ // aapt resource value: 0x7f0d003c public const int design_bottom_navigation_shadow_color = 2131558460; // aapt resource value: 0x7f0d0065 public const int design_error = 2131558501; // aapt resource value: 0x7f0d0066 public const int design_error = 2131558502; // aapt resource value: 0x7f0d003d public const int design_fab_shadow_end_color = 2131558461; @@ -1842,8 +1842,8 @@ // aapt resource value: 0x7f0d0044 public const int design_snackbar_background_color = 2131558468; // aapt resource value: 0x7f0d0066 public const int design_tint_password_toggle = 2131558502; // aapt resource value: 0x7f0d0067 public const int design_tint_password_toggle = 2131558503; // aapt resource value: 0x7f0d0012 public const int dim_foreground_disabled_material_dark = 2131558418; @@ -1865,6 +1865,9 @@ // aapt resource value: 0x7f0d0018 public const int foreground_material_light = 2131558424; // aapt resource value: 0x7f0d0048 public const int gd_top_view = 2131558472; // aapt resource value: 0x7f0d0019 public const int highlighted_text_material_dark = 2131558425; @@ -1920,32 +1923,32 @@ // aapt resource value: 0x7f0d003b public const int notification_material_background_media_default_color = 2131558459; // aapt resource value: 0x7f0d0048 public const int pickerview_bgColor_default = 2131558472; // aapt resource value: 0x7f0d0049 public const int pickerview_bgColor_overlay = 2131558473; public const int pickerview_bgColor_default = 2131558473; // aapt resource value: 0x7f0d004a public const int pickerview_bg_topbar = 2131558474; public const int pickerview_bgColor_overlay = 2131558474; // aapt resource value: 0x7f0d004b public const int pickerview_timebtn_nor = 2131558475; public const int pickerview_bg_topbar = 2131558475; // aapt resource value: 0x7f0d004c public const int pickerview_timebtn_pre = 2131558476; public const int pickerview_timebtn_nor = 2131558476; // aapt resource value: 0x7f0d004d public const int pickerview_topbar_title = 2131558477; public const int pickerview_timebtn_pre = 2131558477; // aapt resource value: 0x7f0d004e public const int pickerview_wheelview_textcolor_center = 2131558478; public const int pickerview_topbar_title = 2131558478; // aapt resource value: 0x7f0d004f public const int pickerview_wheelview_textcolor_divider = 2131558479; public const int pickerview_wheelview_textcolor_center = 2131558479; // aapt resource value: 0x7f0d0050 public const int pickerview_wheelview_textcolor_out = 2131558480; public const int pickerview_wheelview_textcolor_divider = 2131558480; // aapt resource value: 0x7f0d0051 public const int pickerview_wheelview_textcolor_out = 2131558481; // aapt resource value: 0x7f0d0027 public const int primary_dark_material_dark = 2131558439; @@ -1995,11 +1998,11 @@ // aapt resource value: 0x7f0d0036 public const int switch_thumb_disabled_material_light = 2131558454; // aapt resource value: 0x7f0d0067 public const int switch_thumb_material_dark = 2131558503; // aapt resource value: 0x7f0d0068 public const int switch_thumb_material_light = 2131558504; public const int switch_thumb_material_dark = 2131558504; // aapt resource value: 0x7f0d0069 public const int switch_thumb_material_light = 2131558505; // aapt resource value: 0x7f0d0037 public const int switch_thumb_normal_material_dark = 2131558455; ZigbeeApp/Shared/DLL/Android/Shared.Droid.HDLWidget.dllBinary files differ
ZigbeeApp/Shared/DLL/Android/Shared.Droid.Smartrefresh.dllBinary files differ
ZigbeeApp/Shared/DLL/Android/Shared.Droid.dllBinary files differ
ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
@@ -417,10 +417,10 @@ else { //防止短时间内多次读取设备状态 if ((DateTime.Now - ac.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) { //if ((DateTime.Now - ac.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) //{ ReadDeviceAttributeLogic.Instance.SendACStatuComand(device.CommonDevice); } //} } var de = Shared.Common.Room.LoveRoomDeviceUIFilePathList.Find((obj) => obj == device.FileName); ZigbeeApp/Shared/Phone/Device/Category/Category.cs
@@ -345,7 +345,20 @@ { var dimmableLight = deviceUI.CommonDevice as DimmableLight; dimmableLight.DeviceStatusReport = common.DeviceStatusReport; //记录、更新状态 if (dimmableLight.DeviceStatusReport.AttriBute == null || dimmableLight.DeviceStatusReport.AttriBute.Count == 0) { continue; } dimmableLight.OnOffStatus = dimmableLight.DeviceStatusReport.AttriBute[0].AttriButeData; var row = rowLayout.GetChildren(0) as CategoryFunctionRow; row.SetStatu(dimmableLight.OnOffStatus == 1); row.SetStatuText(deviceUI.GetDeviceStatu()); dimmableLight.LastDateTime = DateTime.Now; } if (common.DeviceStatusReport.CluterID == 8) { var dimmableLight = deviceUI.CommonDevice as DimmableLight; dimmableLight.DeviceStatusReport = common.DeviceStatusReport; if (dimmableLight.DeviceStatusReport.AttriBute == null || dimmableLight.DeviceStatusReport.AttriBute.Count == 0) { continue; @@ -876,7 +889,7 @@ { var alert = new CustomAlert(); AddChidren(alert); alert.Show(Language.StringByID(R.MyInternationalizationString.ConfirmDelete)); alert.Show(Language.StringByID(R.MyInternationalizationString.DeleteFunction)); alert.ResultEventHandler += (e2) => { if (e2) @@ -1299,7 +1312,7 @@ Tag = deviceUI, Radius = 0 }; var delBtn = new Device.CommonForm.RowLayoutDeleteButton() var delBtn = new CommonForm.RowLayoutDeleteButton() { Tag = deviceUI, Radius = 0 @@ -1675,9 +1688,7 @@ /// GetDelayScene /// </summary> /// <param name="scrolViewLayout"></param> private void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) { new System.Threading.Thread(async () => private async void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) { var catDelaySceneResponseAllData = await Scene.CatDelaySceneAsync(); if (catDelaySceneResponseAllData == null) @@ -1691,8 +1702,6 @@ } var delayList = catDelaySceneResponseData.DelayScenesList; Application.RunOnMainThread(() => { for (int i = 0; scrolViewLayout != null && i < scrolViewLayout.ChildrenCount; i++) { var sceneView = scrolViewLayout.GetChildren(i) as SceneCategoryView; @@ -1701,31 +1710,31 @@ if (delayScenesListResponseInfo.ScenesId == sceneView.scene.Id) { sceneView.scene.RemainTime = delayScenesListResponseInfo.RemainTime; var remainTime= delayScenesListResponseInfo.RemainTime; if (remainTime > 0) { new System.Threading.Thread(() => { while (sceneView.scene.RemainTime > 0) while (remainTime-- > 0) { System.Threading.Thread.Sleep(1000); Application.RunOnMainThread(() => { sceneView.SetTimeText(CommonFormResouce.GetTimeString(sceneView.scene.RemainTime)); sceneView.SetTimeText(CommonFormResouce.GetTimeString(remainTime)); }); sceneView.scene.RemainTime -= 1; } Application.RunOnMainThread(() => { sceneView.scene.RemainTime = 0; sceneView.SetTimeImage(); }); }) { IsBackground = true }.Start(); } break; } } } }); }) { IsBackground = true }.Start(); } /// <summary> ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionForWinRow.cs
@@ -111,7 +111,7 @@ { X = Application.GetRealWidth(181), Y = Application.GetRealHeight(14), Width = Application.GetRealWidth(400), Width = Application.GetRealWidth(600), Height = Application.GetRealHeight(58), TextColor = ZigbeeColor.Current.GXCTextBlackColor, SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs
@@ -105,7 +105,7 @@ { X = Application.GetRealWidth(181), Y = Application.GetRealHeight(14), Width = Application.GetRealWidth(400), Width = Application.GetRealWidth(600), Height = Application.GetRealHeight(58), TextColor = ZigbeeColor.Current.GXCTextBlackColor, SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, ZigbeeApp/Shared/Phone/Device/DeviceLogic/ReadDeviceAttributeLogic.cs
@@ -35,8 +35,15 @@ /// <param name="device">设备</param> public void SendACStatuComand(CommonDevice device) { SendThermostatStatuComand(device); new System.Threading.Thread(() => { SendFanStatuComand(device); System.Console.WriteLine("发送时间:" + DateTime.Now.ToString("o")); System.Threading.Thread.Sleep(500); SendThermostatStatuComand(device); System.Console.WriteLine("接收时间:" + DateTime.Now.ToString("o")); }) { IsBackground = true }.Start(); } /// <summary> @@ -165,8 +172,13 @@ /// <param name="device"></param> public void SendDimmableLightStatuComand(CommonDevice device) { new System.Threading.Thread(() => { SendSwitchStatuComand(device); System.Threading.Thread.Sleep(300); SendLevelStatuComand(device); }) { IsBackground = true }.Start(); } /// <summary> ZigbeeApp/Shared/Phone/Device/Light/AirSwitchControl.cs
@@ -318,7 +318,7 @@ Height = Application.GetRealHeight(60), Gravity = Gravity.CenterHorizontal, TextColor = ZigbeeColor.Current.GXCTextGrayColor, Text = CommonFormResouce.GetSwitchStatu(device.CommonDevice.IsOnline == 1) Text = CommonFormResouce.GetSwitchStatu((device.CommonDevice as ZigBee.Device.AirSwitch).OnOffStatus == 1) }; itemView.AddChidren(StatuBtn); ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
@@ -126,10 +126,10 @@ } if (deviceUI.CommonDevice.Type == DeviceType.DimmableLight) { if ((common as DimmableLight).DeviceStatusReport.CluterID == 6) if (common.DeviceStatusReport.CluterID == 6) { dimmableLight = deviceUI.CommonDevice as DimmableLight; dimmableLight.DeviceStatusReport = (common as DimmableLight).DeviceStatusReport; dimmableLight.DeviceStatusReport = common.DeviceStatusReport; //记录、更新状态 if (dimmableLight.DeviceStatusReport.AttriBute == null || dimmableLight.DeviceStatusReport.AttriBute.Count == 0) { @@ -142,20 +142,22 @@ { levelSeekBar.IsClickable = true; levelSeekBar.WaveColor = ZigbeeColor.Current.GXCWaveSeekBarColor; //levelSeekBar.Progress = 100; } else { levelSeekBar.IsClickable = false; levelSeekBar.WaveColor = ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor; //levelSeekBar.Progress = 0; } //change color dimmableLight.LastDateTime = DateTime.Now; } //亮度 if ((common as ZigBee.Device.DimmableLight).DeviceStatusReport.CluterID == 8) if (common.DeviceStatusReport.CluterID == 8) { dimmableLight = deviceUI.CommonDevice as ZigBee.Device.DimmableLight; dimmableLight.DeviceStatusReport = (common as ZigBee.Device.DimmableLight).DeviceStatusReport; dimmableLight.DeviceStatusReport = common.DeviceStatusReport; var attriButeList = dimmableLight.DeviceStatusReport.AttriBute; if (attriButeList == null || attriButeList.Count == 0) { @@ -375,7 +377,7 @@ Height = Application.GetRealHeight(60), Gravity = Gravity.CenterHorizontal, TextColor = ZigbeeColor.Current.GXCTextGrayColor, Text = CommonFormResouce.GetSwitchStatu(device.CommonDevice.IsOnline == 1) Text = CommonFormResouce.GetSwitchStatu((device.CommonDevice as DimmableLight).OnOffStatus == 1) }; itemView.AddChidren(StatuBtn); ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs
@@ -166,7 +166,7 @@ return; } deviceUI.CommonDevice.IsOnline = common.IsOnline; deviceIMG.IsSelected = switchBtn.IsSelected = deviceUI.CommonDevice.IsOnline == 1; //deviceIMG.IsSelected = switchBtn.IsSelected = deviceUI.CommonDevice.IsOnline == 1; deviceUI.CommonDevice.LastDateTime = DateTime.Now; } catch (Exception ex) @@ -341,7 +341,7 @@ Height = Application.GetRealHeight(60), Gravity = Gravity.CenterHorizontal, TextColor = ZigbeeColor.Current.GXCTextGrayColor, Text=CommonFormResouce.GetSwitchStatu(device.CommonDevice.IsOnline==1) Text=CommonFormResouce.GetSwitchStatu((device.CommonDevice as ToggleLight).OnOffStatus == 1) }; itemView.AddChidren(StatuBtn); ZigbeeApp/Shared/Phone/Device/Light/OnOffControl.cs
@@ -174,7 +174,7 @@ return; } deviceUI.CommonDevice.IsOnline = common.IsOnline; OnBtn.IsSelected = OffBtn.IsSelected= deviceUI.CommonDevice.IsOnline == 1; //OnBtn.IsSelected = OffBtn.IsSelected= deviceUI.CommonDevice.IsOnline == 1; deviceUI.CommonDevice.LastDateTime = DateTime.Now; } catch (Exception ex) @@ -348,7 +348,7 @@ Height = Application.GetRealHeight(60), Gravity = Gravity.CenterHorizontal, TextColor = ZigbeeColor.Current.GXCTextGrayColor, Text = CommonFormResouce.GetSwitchStatu(device.CommonDevice.IsOnline == 1) Text = CommonFormResouce.GetSwitchStatu((device.CommonDevice as ToggleLight).OnOffStatus == 1) }; itemView.AddChidren(StatuBtn); ZigbeeApp/Shared/Phone/Device/Light/PlugControl.cs
@@ -167,7 +167,7 @@ return; } deviceUI.CommonDevice.IsOnline = common.IsOnline; deviceIMG.IsSelected = switchBtn.IsSelected = deviceUI.CommonDevice.IsOnline == 1; //deviceIMG.IsSelected = switchBtn.IsSelected = deviceUI.CommonDevice.IsOnline == 1; deviceUI.CommonDevice.LastDateTime = DateTime.Now; } catch (Exception ex) @@ -341,7 +341,7 @@ Height = Application.GetRealHeight(60), Gravity = Gravity.CenterHorizontal, TextColor = ZigbeeColor.Current.GXCTextGrayColor, Text = CommonFormResouce.GetSwitchStatu(device.CommonDevice.IsOnline == 1) Text = CommonFormResouce.GetSwitchStatu((device.CommonDevice as ToggleLight).OnOffStatus == 1) }; itemView.AddChidren(StatuBtn); ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
@@ -1696,10 +1696,9 @@ /// GetDelayScene /// </summary> /// <param name="scrolViewLayout"></param> private void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) private async void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) { new System.Threading.Thread(async () => { var catDelaySceneResponseAllData = await Scene.CatDelaySceneAsync(); if (catDelaySceneResponseAllData == null) { @@ -1712,8 +1711,6 @@ } var delayList = catDelaySceneResponseData.DelayScenesList; Application.RunOnMainThread(() => { for (int i = 0; scrolViewLayout != null && i < scrolViewLayout.ChildrenCount; i++) { var iView = scrolViewLayout.GetChildren(i) as FrameLayout; @@ -1724,35 +1721,34 @@ { if (delayScenesListResponseInfo.ScenesId == sceneView.scene.Id) { var times = delayScenesListResponseInfo.RemainTime; sceneView.scene.RemainTime = times; var remainTime = delayScenesListResponseInfo.RemainTime; sceneView.scene.RemainTime = remainTime; if (remainTime > 0) { new System.Threading.Thread(() => { while (times > 0) while (remainTime-- > 0) { System.Threading.Thread.Sleep(1000); Application.RunOnMainThread(() => { sceneView.SetTimeText(CommonFormResouce.GetTimeString(times)); sceneView.SetTimeText(CommonFormResouce.GetTimeString(remainTime)); }); times -= 1; } Application.RunOnMainThread(() => { sceneView.scene.RemainTime = 0; sceneView.SetTimeImage(); }); }) { IsBackground = true }.Start(); } break; } } } } }); }) { IsBackground = true }.Start(); } #endregion ZigbeeApp/Shared/R.cs
@@ -904,7 +904,7 @@ /// </summary> public const int Save = 11021; /// <summary> /// 提示 /// 提醒 /// </summary> public const int TIP = 11022; /// <summary> @@ -951,6 +951,10 @@ /// 选择场景图片 /// </summary> public const int SelectScenePic = 11033; /// <summary> /// 确定删除吗? /// </summary> public const int DeleteFunction = 11034; #region 设备类型 /// <summary>