private DataGridViewRow IoControllerRow(IoSystemLevel ioSystem)
        {
            var ioControllerRow = DeviceRowsHelper.InitializeRow(ID.NextID, ioSystem.IoController, ioSystem, deviceTable);
            var cells           = ioControllerRow.Cells;
            var deviceNameCell  = cells[dgv_DeviceName.Index];

            DeviceRowsHelper.PadCell(deviceNameCell, 0);
            DeviceRowsHelper.DisableCell(cells[dgv_PnNumber.Index]);

            if (!ioSystem.IoController.UseRouter)
            {
                DeviceRowsHelper.DisableCell(cells[dgv_RouterAddress.Index]);
            }

            return(ioControllerRow);
        }
        private DataGridViewRow IoDeviceRow(NetworkDeviceItem ioDevice, IoSystemLevel ioSystem)
        {
            var ioDeviceRow    = DeviceRowsHelper.InitializeRow(ID.NextID, ioDevice, ioSystem, deviceTable);
            var cells          = ioDeviceRow.Cells;
            var deviceNameCell = cells[dgv_DeviceName.Index];

            DeviceRowsHelper.PadCell(deviceNameCell, 25);
            DeviceRowsHelper.DisableCells(cells[dgv_IoSystem.Index], cells[dgv_PnSubnet.Index],
                                          cells[dgv_RouterAddress.Index], cells[dgv_Mask.Index]);

            if (string.IsNullOrEmpty(cells[dgv_IpAddress.Index].Value?.ToString())) // empty in future?
            {
                DeviceRowsHelper.DisableCell(cells[dgv_IpAddress.Index]);
            }

            return(ioDeviceRow);
        }