Bonjour à tous,
Je suis actuellement en train développer une interface graphique pour une application PowerShell. Dans mon interface, j'ai mis une ListView à deux colonnes (Constructor, Mac address).
$Exclusionlist.TabIndex = 3
$Exclusionlist.Location = '20, 50'
$Exclusionlist.Size = '220, 320'
$Exclusionlist.View = "Details"
$Exclusionlist.GridLines = $True
$Exclusionlist.FullRowSelect = $True
$Exclusionlist.AllowColumnReorder = $True
$Exclusionlist.Scrollable = $True
$Exclusionlist.Sorting ='None'
$Exclusionlist.Columns.Add("Constructor", 112)
$Exclusionlist.Columns.Add("Mac address", 112)
Ensuite j'ai fichier XML, qui contient les données à mettre dans ce tableau.
<?xml version="1.0" encoding="utf-8"?>
<settings>
<configExclude>
<exclude>
<constructor Value="cisco" />
<mac Value="00000c" />
</exclude>
<exclude>
<constructor Value="cisco" />
<mac Value="c08c60" />
</exclude>
<exclude>
<constructor Value="cisco" />
<mac Value="bc1665" />
</exclude>
<exclude>
<constructor Value="zebra" />
<mac Value="00074D" />
</exclude>
<exclude>
<constructor Value="lexmark" />
<mac Value="0021b7" />
</exclude>
<exclude>
<constructor Value="lexmark" />
<mac Value="000400" />
</exclude>
<exclude>
<constructor Value="hp" />
<mac Value="dc4a3e" />
</exclude>
<exclude>
<constructor Value="oce-minolta" />
<mac Value="00206b" />
</exclude>
<exclude>
<constructor Value="minolta" />
<mac Value="00032d" />
</exclude>
<exclude>
<constructor Value="toshiba" />
<mac Value="008091" />
</exclude>
<exclude>
<constructor Value="vxl" />
<mac Value="006072" />
</exclude>
<exclude>
<constructor Value="vxl" />
<mac Value="801f02" />
</exclude>
</configExclude>
</Exclusion>
</settings
Le problème est que je n'arrive pas à mettre les valeurs dans le tableau...
Pourriez vous m'indiquer une solution. Merci d'avance à ceux qui m'apporterons leurs aide