1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| private void majCom()
{
// ici on récupère les champs
string filePath = "/script/widget.php?" +
Registry.CurrentUser.OpenSubKey("Software\\Amenothes\\MyKey", true).GetValue("UserName").ToString() +
"=&" +
Registry.CurrentUser.OpenSubKey("Software\\Amenothes\\MyKey", true).GetValue("Password").ToString() +
"=&" +
Registry.CurrentUser.OpenSubKey("Software\\Amenothes\\MyKey", true).GetValue("URL").ToString() +
"=";
XmlTextReader txtReader = new XmlTextReader(filePath);
comsdataset.Clear();
comsdataset.ReadXml(txtReader);
dataGridView1.DataSource = comsdataset;
dataGridView1.DataMember = "commande";
// retourne la methode cellFormating de la page 2 pour la colorisation des cellules
dataGridView1.CellFormatting += dataGridView1_CellFormatting;
// retourne le style lors du click sur le bouton de la page 2
this.dataGridViewComStyle();
afficherStat = false;
} |