| | |
| | | private List<CommonDevice> GetListDeviceFromRow()
|
| | | {
|
| | | List<CommonDevice> listDevice = new List<CommonDevice>();
|
| | | for (int i = 0; ; i++)
|
| | | for (int i = 0; i < this.listView.ChildrenCount; i++)
|
| | | {
|
| | | var row = (DeviceSelectControl)this.listView.GetChildren(i);
|
| | | if (row == null)
|
| | | var myView = this.listView.GetChildren(i);
|
| | | if (myView is DeviceSelectControl)
|
| | | {
|
| | | break;
|
| | | }
|
| | | var row = (DeviceSelectControl)myView;
|
| | | if (row.IsSelected == true)
|
| | | {
|
| | | listDevice.Add(row.device);
|
| | | }
|
| | | }
|
| | | }
|
| | | return listDevice;
|
| | |
| | | /// <summary>
|
| | | /// 界面关闭
|
| | | /// </summary>
|
| | | public override void CloseForm()
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | ActionSelectDeviceEx = null;
|
| | |
|
| | | base.CloseForm();
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | | #endregion
|