xm
2020-04-22 dfa6733793434bdcfd394f978ae72f1628b2260f
ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs
@@ -150,6 +150,10 @@
                    {
                        device.IconPath = "Device/Light.png";
                    }
                    else
                    {
                        device.IconPath = "Device/RelayEpoint.png";
                    }
                    device.ReSave();
                }
                this.CloseProgressBar();
@@ -338,10 +342,19 @@
                        var title = Language.StringByID(R.MyInternationalizationString.uSelectFunctionType);
                        var form = new BottomItemSelectForm();
                        form.CancelCallEvent = true;//允许取消
                        form.AddForm(title, listText, nowSelectNo);
                        form.FinishSelectEvent += (selectNo) =>
                        {
                            if (selectNo == -1)
                            {
                                //取消选择
                                btnFunction.Text = string.Empty;
                            }
                            else
                            {
                            btnFunction.Text = listText[selectNo];
                            }
                            nowSelectNo = selectNo;
                            //记录起当前选择的功能类型
                            if (selectNo == 0)
@@ -352,10 +365,14 @@
                            {
                                dicDeviceFuncType[nowSelectDevice.DeviceEpoint] = DeviceFunctionType.A灯光;
                            }
                            else
                            else if (selectNo == 2)
                            {
                                dicDeviceFuncType[nowSelectDevice.DeviceEpoint] = DeviceFunctionType.A插座;
                            }
                            else
                            {
                                dicDeviceFuncType[nowSelectDevice.DeviceEpoint] = DeviceFunctionType.A未定义;
                            }
                        };
                    };
                }