| | |
| | | ZigbeeApp/.vs/GateWay/xs/project-cache/ShardLib-Debug.json |
| | | ZigbeeApp/packages/System.Runtime.4.3.0/lib/xamarintvos10/_._ |
| | | *._ |
| | | *.ide |
| | | ZigbeeApp/.vs/GateWay/xs/sqlite3/storage.ide |
| | |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.M7BBB18B19152766" /> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Ios automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.8c0bdb303f25d82c2a42fb8bfca449bfaca00260" /> |
| | | <MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.M7BBB18B19152766" /> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Common/Room.cs"> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Common/CommonPage.cs"> |
| | | <Files> |
| | | <File FileName="Shared/Common/CommonPage.cs" Line="163" Column="30" /> |
| | | <File FileName="Shared/Phone/UserView/UserHomeView.cs" Line="654" Column="51" /> |
| | | <File FileName="Shared/R.cs" Line="667" Column="18" /> |
| | | <File FileName="GateWay.Droid/Assets/Language.ini" Line="632" Column="18" /> |
| | | <File FileName="Shared/Common/House.cs" Line="1" Column="1" /> |
| | | <File FileName="Shared/Common/Room.cs" Line="647" Column="26" /> |
| | | <File FileName="Shared/Common/CommonPage.cs" Line="162" Column="61" /> |
| | | <File FileName="Shared/Phone/UserView/UserHomeView.cs" /> |
| | | <File FileName="Shared/R.cs" /> |
| | | <File FileName="GateWay.Droid/Assets/Language.ini" /> |
| | | <File FileName="Shared/Phone/Device/CommonForm/FunctionMainView.cs" /> |
| | | <File FileName="Shared/Phone/Device/Room/UnallocatedRoom.cs" /> |
| | | <File FileName="Shared/Phone/Device/Account/AccountRegister.cs" /> |
| | | <File FileName="Shared/Phone/Device/Account/AccountLogic.cs" /> |
| | | <File FileName="Shared/Phone/Device/Account/AccountForgetPWD.cs" /> |
| | | </Files> |
| | | <Pads> |
| | | <Pad Id="ProjectPad"> |
| | |
| | | </Node> |
| | | <Node name="Shared" expanded="True"> |
| | | <Node name="Common" expanded="True"> |
| | | <Node name="Room.cs" selected="True" /> |
| | | <Node name="CommonPage.cs" selected="True" /> |
| | | </Node> |
| | | <Node name="Phone" expanded="True"> |
| | | <Node name="Device" expanded="True"> |
| | | <Node name="Account" expanded="True" /> |
| | | <Node name="Category" expanded="True" /> |
| | | <Node name="DeviceLogic" expanded="True" /> |
| | | <Node name="CommonForm" expanded="True" /> |
| | | <Node name="Room" expanded="True" /> |
| | | </Node> |
| | | <Node name="UserCenter" expanded="True"> |
| | | <Node name="CommonBase" expanded="True" /> |
| | |
| | | </DisabledProjects> |
| | | <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" /> |
| | | <MonoDevelop.Ide.DebuggingService.Breakpoints> |
| | | <BreakpointStore /> |
| | | <BreakpointStore> |
| | | <Breakpoint file="/Users/guoxuecheng/Desktop/HomeApp/ZigbeeApp/Shared/Phone/Device/Account/AccountRegister.cs" relfile="Shared/Phone/Device/Account/AccountRegister.cs" line="409" column="1" /> |
| | | </BreakpointStore> |
| | | </MonoDevelop.Ide.DebuggingService.Breakpoints> |
| | | <MultiItemStartupConfigurations /> |
| | | </Properties> |
| | |
| | | 13506=5挡 |
| | | 13511=请清洁滤网 |
| | | |
| | | |
| | | 13600=没功能 {\r\n} 请先添加 |
| | | 13601=没场景 {\r\n} 请先添加 |
| | | |
| | | |
| | | |
| | |
| | | |
| | | /// <summary> |
| | | /// 用于中国大陆验证手机号正则表达式 |
| | | /// 等同于--- "^[1]+\\d{10}" |
| | | /// </summary> |
| | | public static string PhoneRegexStr = "^[1]+[0,1,2,3,4,5,6,7,8,9]+\\d{9}"; |
| | | public static string PhoneRegexStr = "^[1][0-9]{10}$"; |
| | | /// <summary> |
| | | /// 用于验证非中国大陆手机号正则表达式 |
| | | /// </summary> |
| | |
| | | /// <returns></returns> |
| | | public List<Room> GetRoomsByFloorId(string id) |
| | | { |
| | | if (Config.Instance.Home.FloorDics.Count == 0) |
| | | { |
| | | return Lists; |
| | | } |
| | | return Lists.FindAll((obj) => obj.FloorId == id); |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | public List<string> GetRoomNamesByFloorId(string id) |
| | | public List<string> GetRoomNamesByFloorId(string id) |
| | | { |
| | | List<string> names = new List<string> { }; |
| | | foreach(var r in Lists) |
| | | foreach (var r in Lists) |
| | | { |
| | | if(r.FloorId==id) |
| | | if (r.FloorId == id) |
| | | { |
| | | names.Add(r.Name); |
| | | } |
| | |
| | | /// <returns></returns> |
| | | public List<Room> GetRoomsByFloorIdAppendLoveRoom(string id) |
| | | { |
| | | if (Config.Instance.Home.FloorDics.Count == 0) |
| | | { |
| | | return Lists; |
| | | } |
| | | var r= Lists.FindAll((obj) => obj.FloorId == id); |
| | | r.Insert(0, GetLoveRoom()); |
| | | return r; |
| | |
| | | { |
| | | return; |
| | | } |
| | | //先判断2次密码输入是否一致 |
| | | if (pwdRow.PasswrodET.Text.Trim() != pwdComfireRow.PasswrodET.Text.Trim()) |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.TwoPasswordInconsistency; |
| | | return; |
| | | } |
| | | |
| | | if (AccountLogic.Instance.CheckPwdLength(pwdRow.PasswrodET.Text.Trim()) == false) |
| | | { |
| | | errorBtn.TextID = R.MyInternationalizationString.ThePWDLengthError; |
| | | return; |
| | | } |
| | | |
| | | (sender as Button).Enable = (sender as Button).IsSelected = false; |
| | | CommonPage.Loading.Start(); |
| | |
| | | { |
| | | curRoom = rooms[index1][index2]; |
| | | zoneRow.SetTitle($"{Config.Instance.Home.GetFloorNameById(floorIds[index1])} , {rooms[index1][index2].Name}"); |
| | | }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongFloor), |
| | | }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongZone), |
| | | Language.StringByID(R.MyInternationalizationString.Confrim), |
| | | Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |
| | |
| | | { |
| | | curRoom = rs[index1]; |
| | | zoneRow.SetTitle(rs[index1].Name); |
| | | }, 0, Language.StringByID(R.MyInternationalizationString.BelongFloor), |
| | | }, 0, Language.StringByID(R.MyInternationalizationString.BelongZone), |
| | | Language.StringByID(R.MyInternationalizationString.Confrim), |
| | | Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |
| | |
| | | confirmBtn.SetTitle(R.MyInternationalizationString.Save); |
| | | confirmBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | sceneTargetDevice.DelayTime = totalSecond; |
| | | selectedTimeAction?.Invoke(sceneTargetDevice); |
| | | RemoveFromParent(); |
| | | if (totalSecond == 0) |
| | | { |
| | | RemoveFromParent(); |
| | | } |
| | | else |
| | | { |
| | | sceneTargetDevice.DelayTime = totalSecond; |
| | | selectedTimeAction?.Invoke(sceneTargetDevice); |
| | | RemoveFromParent(); |
| | | } |
| | | }; |
| | | } |
| | | |
| | |
| | | Y = Application.GetMinRealAverage(17), |
| | | Width = Application.GetMinRealAverage(320), |
| | | Height = Application.GetMinRealAverage(63), |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextAlignment=TextAlignment.CenterLeft |
| | | }; |
| | |
| | | var floorRow = new DeviceInfoRow(308); |
| | | floorRow.Init(); |
| | | floorRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.BelongFloor)} :"); |
| | | infoFL.AddChidren(floorRow); |
| | | if (!room.IsLove) |
| | | if (Config.Instance.Home.FloorDics.Count > 0 && room.IsLove == false) |
| | | { |
| | | floorRow.SetTitle(room.FloorName); |
| | | floorRow.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (Config.Instance.Home.FloorDics != null) |
| | | { |
| | | List<string> floorIds = new List<string> { }; |
| | | List<string> floorNames = new List<string> { }; |
| | | foreach (var floor in Config.Instance.Home.FloorDics) |
| | | { |
| | | floorIds.Add(floor.Key); |
| | | floorNames.Add(floor.Value); |
| | | } |
| | | |
| | | PickerView.Show(floorNames, (index) => |
| | | { |
| | | room.FloorId = floorIds[index]; |
| | | floorRow.SetTitle(room.FloorName); |
| | | }, floorIds.IndexOf(room.FloorId), Language.StringByID(R.MyInternationalizationString.BelongFloor), Language.StringByID(R.MyInternationalizationString.Confrim), Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |
| | | }; |
| | | infoFL.AddChidren(floorRow); |
| | | } |
| | | floorRow.SetTitle(room.FloorName); |
| | | floorRow.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (Config.Instance.Home.FloorDics != null) |
| | | { |
| | | List<string> floorIds = new List<string> { }; |
| | | List<string> floorNames = new List<string> { }; |
| | | foreach (var floor in Config.Instance.Home.FloorDics) |
| | | { |
| | | floorIds.Add(floor.Key); |
| | | floorNames.Add(floor.Value); |
| | | } |
| | | |
| | | PickerView.Show(floorNames, (index) => |
| | | { |
| | | room.FloorId = floorIds[index]; |
| | | floorRow.SetTitle(room.FloorName); |
| | | }, floorIds.IndexOf(room.FloorId), Language.StringByID(R.MyInternationalizationString.BelongFloor), Language.StringByID(R.MyInternationalizationString.Confrim), Language.StringByID(R.MyInternationalizationString.Cancel)); |
| | | } |
| | | }; |
| | | |
| | | |
| | | var temperatureRow = new DeviceInfoRow(446); |
| | | temperatureRow.Init(); |
| | |
| | | (selectTemp as ZigBee.Device.TemperatureSensor).ReadTemperatureOrHumidity(); |
| | | }; |
| | | }; |
| | | |
| | | if (string.IsNullOrEmpty(room.TemperatrueDevice) == false) |
| | | { |
| | | HdlGatewayReceiveLogic.Current.RemoveEvent("TemperatrueDevice"); |
| | |
| | | (dev as ZigBee.Device.TemperatureSensor).ReadTemperatureOrHumidity(); |
| | | } |
| | | } |
| | | |
| | | |
| | | var humidityRow = new DeviceInfoRow(585); |
| | | humidityRow.Init(); |
| | |
| | | } |
| | | } |
| | | |
| | | if (Config.Instance.Home.FloorDics.Count == 0 || room.IsLove) |
| | | { |
| | | temperatureRow.Y = Application.GetRealHeight(308); |
| | | humidityRow.Y= Application.GetRealHeight(446); |
| | | } |
| | | |
| | | var confirm = new Device.CommonForm.CompleteButton(1700, 700, 127); |
| | | confirm.SetTitle(R.MyInternationalizationString.Confrim); |
| | |
| | | }; |
| | | |
| | | floorBtn.Text = Config.Instance.Home.GetCurrentFloorName; |
| | | top.topView.AddChidren(floorBtn); |
| | | top.topView.AddChidren(selectFloorBtn); |
| | | if(Config.Instance.Home.FloorDics.Count>0) |
| | | { |
| | | top.topView.AddChidren(floorBtn); |
| | | top.topView.AddChidren(selectFloorBtn); |
| | | } |
| | | selectFloorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; |
| | | floorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; |
| | | } |
| | |
| | | private void ShowUnallocatedRoom_MouseUpEvent(object sender,MouseEventArgs mouseEventArgs) |
| | | { |
| | | var unalloctedRoom = new UnallocatedRoom(); |
| | | HomePage.Instance.AddChidren(unalloctedRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | | AddChidren(unalloctedRoom); |
| | | unalloctedRoom.Show(); |
| | | } |
| | | } |
| | |
| | | public void ShowFunction(bool selectAll) |
| | | { |
| | | SelectAll = selectAll; |
| | | |
| | | var devList = Common.Room.AllRoomDeviceUIList; |
| | | |
| | | //选择功能--直接从房间的devicelist中获取 |
| | | if (Common.Room.AllRoomDeviceUIList == null) |
| | | if (devList == null) |
| | | { |
| | | return; |
| | | } |
| | | if (Common.Room.AllRoomDeviceUIList.Count == 0) |
| | | if (devList.Count == 0) |
| | | { |
| | | ShowNoFunctionTip(); |
| | | } |
| | |
| | | functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | |
| | | |
| | | if (deviceType == Shared.Common.Room.AllRoomDeviceUIList[0].CommonDevice.Type) |
| | | if (deviceType == devList[0].CommonDevice.Type) |
| | | { |
| | | ShowSameTypeFunction(functionTypeIMG.ImageBtn, null); |
| | | } |
| | |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(700), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextID = R.MyInternationalizationString.NoFunction, |
| | | //Text = "没有功能 \n 请在个人中心中--设备管理处添加", |
| | | Text= Language.StringByID(R.MyInternationalizationString.NoFunction_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsMoreLines = true |
| | |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(700), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextID = R.MyInternationalizationString.NoScene, |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsMoreLines = true |
| | |
| | | |
| | | floorBtn = new Button |
| | | { |
| | | X = floor.Right, |
| | | Width = Application.GetRealWidth(500), |
| | | Height = Application.GetRealHeight(100), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | if(Config.Instance.Home.FloorDics.Count>0) |
| | | { |
| | | topFrameLayout.AddChidren(floor); |
| | | floorBtn.X = floor.Right; |
| | | topFrameLayout.AddChidren(floorBtn); |
| | | } |
| | | |
| | | |
| | | var messageBtn = new Button() |
| | | { |
| | |
| | | { |
| | | Y = noFunction.Bottom, |
| | | Height = Application.GetRealHeight(200), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}", "\r\n"), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | IsMoreLines = true |
| | | }; |
| | |
| | | { |
| | | Y = noScene.Bottom, |
| | | Height = Application.GetRealHeight(200), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoScene).Replace("{\\r\\n}", "\r\n"), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | IsMoreLines = true |
| | | }; |
| | |
| | | /// </summary> |
| | | public const int TheSceneIsDelaying = 13149; |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 选择摆风 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | public const int NeedCleanAC = 13511; |
| | | |
| | | /// <summary> |
| | | /// 没功能 请先添加 |
| | | /// </summary> |
| | | public const int NoFunction_Tip = 13600; |
| | | /// <summary> |
| | | /// 没场景 请先添加 |
| | | /// </summary> |
| | | public const int NoScene_Tip = 13601; |
| | | |
| | | |
| | | |
| | | |
| | | #endregion |