| | |
| | | /// 做成一个显示设备回路+房间的RowLayout
|
| | | /// </summary>
|
| | | /// <param name="i_device">设备对象</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public DeviceRoomControl(CommonDevice i_device, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | this.mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(i_device);
|
| | |
| | | frameTable.AddChidren(btnRoom, ChidrenBindMode.BindEventOnly);
|
| | | if (tempDevice != null)
|
| | | {
|
| | | btnRoom.Text = Common.Room.CurrentRoom.GetRoomNameByDevice(tempDevice);
|
| | | btnRoom.Text = HdlRoomLogic.Current.GetRoomNameByDevice(tempDevice);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | | btnDevie.Text = Common.LocalDevice.Current.GetDeviceEpointName(tempDevice);
|
| | | btnRoom.Text = Common.Room.CurrentRoom.GetRoomNameByDevice(tempDevice);
|
| | | btnRoom.Text = HdlRoomLogic.Current.GetRoomNameByDevice(tempDevice);
|
| | |
|
| | | string unSelectPath = string.Empty;
|
| | | string selectPath = string.Empty;
|