| | |
| | | #region ■ 实现外部调用_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加新的设备到界面桌布中
|
| | | /// 添加新的设备到界面桌布中(外部调用)
|
| | | /// </summary>
|
| | | /// <param name="deviceAddr">设备Mac地址</param>
|
| | | public void AddDeviceToFormTable(string deviceAddr)
|
| | |
| | |
|
| | | //创建新的行
|
| | | this.AddDeviceMenuRow(deviceAddr);
|
| | |
|
| | | //记录当前的正在操作的设备的Mac地址
|
| | | this.nowActionDeviceMac = deviceAddr;
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 刷新指定设备行的信息(外部调用)
|
| | | /// </summary>
|
| | | /// <param name="deviceAddr">设备Mac地址</param>
|
| | | public void RefreshDeviceRow(string deviceAddr)
|
| | | {
|
| | | if (this.dicRowInfo.ContainsKey(deviceAddr) == true)
|
| | | {
|
| | | var row = this.dicRowInfo[deviceAddr];
|
| | | row.MenuRow?.RefreshControlInfo(true);
|
| | | //明细
|
| | | if (row.dicDetailRow != null)
|
| | | {
|
| | | foreach (var detailRow in row.dicDetailRow.Values)
|
| | | {
|
| | | detailRow.RefreshControlInfo();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|