| | |
| | | }
|
| | |
|
| | | //添加新设备的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshForm = true;
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | |
|
| | | //设置标题信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddDevice));
|
| | |
| | | this.SetDoorTime();
|
| | | //新入网的设备,清空掉它的房间
|
| | | this.ClearDeviceFromRoom();
|
| | | //添加设备的时候,关闭左划菜单的未分配界面
|
| | | MainPage.LeftListRoomViewFrom.Instance?.CloseUnallocatedRoomForm();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | string caption = Language.StringByID(R.MyInternationalizationString.uDeviceNote);
|
| | | string deviceName = Common.LocalDevice.Current.GetDeviceMacName(listNewDevice[0]);
|
| | | this.btnNote = new FrameCaptionInputControl(caption, deviceName, listview.rowSpace / 2);
|
| | | this.btnNote.txtInput.MaxByte = 48;//限制只能输入48个字节
|
| | | listview.AddChidren(btnNote);
|
| | | btnNote.InitControl();
|
| | | //划线
|
| | |
| | | }
|
| | | }
|
| | | //保存设备房间索引
|
| | | Common.LocalDevice.Current.SaveRealDeviceRoomId(this.listNewDevice, roomKeys);
|
| | | HdlRoomLogic.Current.SaveRealDeviceRoomId(this.listNewDevice, roomKeys);
|
| | | };
|
| | |
|
| | | //更多配置
|
| | |
| | | HdlRoomLogic.Current.DeleteDevice(device);
|
| | | HdlRoomLogic.Current.DeleteLoveDevice(device);
|
| | | }
|
| | | Common.LocalDevice.Current.DeleteRealDeviceFromRoom(this.listNewDevice[0]);
|
| | | HdlRoomLogic.Current.DeleteRealDeviceFromRoom(this.listNewDevice[0]);
|
| | | }
|
| | |
|
| | | #endregion
|