| | |
| | | UserView.HomePage.Instance.ScrollEnabled = false; |
| | | CompleteView completeView = new CompleteView(); |
| | | flMain.AddChidren(completeView.Show(1)); |
| | | completeView.Btntitle.Text = common.DeviceEpointName; |
| | | completeView.Btntitle.Text = LocalDevice.Current.GetDeviceEpointName(common); |
| | | EventHandler<MouseEventArgs> clickcancel = (sender, e) => |
| | | { |
| | | UserView.HomePage.Instance.ScrollEnabled = true; |
| | | if (!edit) |
| | | { |
| | | UserView.HomePage.Instance.ScrollEnabled = true; |
| | | } |
| | | flMain.RemoveFromParent(); |
| | | }; |
| | | flMain.MouseUpEventHandler += clickcancel; |
| | |
| | | break; |
| | | case 40: |
| | | { |
| | | |
| | | openView.titleBtn.TextID = MyInternationalizationString.smokescreen; |
| | | openView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | completeView.Show(1).AddChidren(openView.Show()); |
| | |
| | | } |
| | | break; |
| | | case 43: |
| | | { |
| | | {//召元说的 |
| | | openView.titleBtn.TextID = MyInternationalizationString.gas; |
| | | openView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; |
| | | completeView.Show(1).AddChidren(openView.Show()); |
| | |
| | | } |
| | | break; |
| | | case DeviceType.DoorLock: |
| | | { |
| | | {
|
| | | |
| | | flMain.RemoveFromParent(); |
| | | var memberList = new MemberList(); |
| | |
| | | Send.dictionary(deviceConditionsInfo, "Cluster_ID", "1026"); |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeId", "0"); |
| | | Send.dictionary(deviceConditionsInfo, "Range", "1");//1:等于AttriButeData1时触发动作 |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", "50");//默认温度值50℃ |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", "5000");//默认温度值50℃ |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | } |
| | | else |
| | |
| | | Send.dictionary(deviceConditionsInfo, "Cluster_ID", "1029"); |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeId", "0"); |
| | | Send.dictionary(deviceConditionsInfo, "Range", "1");//1:等于AttriButeData1时触发动作 |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", "50");//默认湿度值50% |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", "5000");//默认湿度值50% |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData2", "0"); |
| | | } |
| | | mUIPickerView.setNPicker(mList1, mList2, mList3); |
| | |
| | | |
| | | mUIPickerView.OnSelectChangeEvent += (s1, s2, s3) => |
| | | { |
| | | ///温度进率转换*100 |
| | | var strValue = (int.Parse(mList2[s2]) * 100).ToString(); |
| | | SelectedDeviceStatus = "TemperatureSensor"; |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", mList2[s2]); |
| | | Send.dictionary(deviceConditionsInfo, "AttriButeData1", strValue); |
| | | switch (mList1[s1]) |
| | | { |
| | | case ">": |
| | |
| | | break; |
| | | } |
| | | //查找索引 |
| | | index1 = mList1.IndexOf(s); |
| | | index2 = mList2.IndexOf(devices["AttriButeData1"]); |
| | | index1 = mList1.IndexOf(s);
|
| | | //转换温度值/100
|
| | | var dd = (int.Parse(devices["AttriButeData1"])/100).ToString(); |
| | | index2 = mList2.IndexOf(dd); |
| | | |
| | | } |
| | | ///更新最新状态; |
| | |
| | | } |
| | | else |
| | | { //添加目标 |
| | | LogicIfon.AddDeviceactions(common, actionsInfo); |
| | | if (SelectedDeviceStatus == "DoorLock") |
| | | {//门锁数据特殊,进行特殊处理; |
| | | LogicIfon.AddDoorLockActions(common, actionsInfo); |
| | | } |
| | | else |
| | | { |
| | | LogicIfon.AddDeviceActions(common, actionsInfo); |
| | | } |
| | | } |
| | | } |
| | | else |