[CP-6383]: Configuration of vGPU types for pGPUs

# HG changeset patch
# User Gabor Apati-Nagy <Gabor.Apati-Nagy@citrix.com>
# Date 1382626325 -3600
#      Thu Oct 24 15:52:05 2013 +0100
# Node ID 5e98fb1f82eeaff4c709ad7e6a92916c51488b75
# Parent  9b2305266f104c3ae9ec32804a92b3596d0aa399

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2013-11-14 11:13:32 +00:00
parent f7d59a8c24
commit c35b4d26cb

View File

@ -55,7 +55,7 @@ namespace XenAdmin.Controls.GPU
dataGridViewEx1.Rows.AddRange((from supportedVGpuTypeRef in pGpu.supported_VGPU_types
let supportedVGpuType = pGpu.Connection.Resolve(supportedVGpuTypeRef)
let enabled = pGpu.enabled_VGPU_types.Contains(supportedVGpuTypeRef)
let isInUse = pGpuList.Any(p => p.Connection.ResolveAll(p.resident_VGPUs).Any(v => v.type == supportedVGpuTypeRef))
let isInUse = pGpuList.Any(p => p.Connection.ResolveAll(p.resident_VGPUs).Any(v => v.type.opaque_ref == supportedVGpuTypeRef.opaque_ref))
orderby supportedVGpuType.Capacity ascending
select new VGpuDetailWithCheckBoxRow(supportedVGpuTypeRef, supportedVGpuType, enabled, isInUse)