// Le flux vers lequel on va exporter le fichier
Stream myStream;
// On filtre les fichiers de type XML
openFileDialog1.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 1;
openFileDialog1.RestoreDirectory = true;
openFileDialog1.FileName = "save.xml";
// Affichage de la boîte de dialogue
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
// ReSharper disable ConditionIsAlwaysTrueOrFalse
if ((myStream = openFileDialog1.OpenFile()) != null)
// ReSharper restore ConditionIsAlwaysTrueOrFalse
{
myDataSet.ReadXml(myStream);
// On ferme la source
myStream.Close();
}
}
30 octobre 2008
Charger le contenu d'un fichier XML dans un dataset avec une boîte de dialogue
Inscription à :
Publier les commentaires (Atom)
How I Turned GitHub Copilot Into My Coding Sidekick (And Why It Feels Like Cheating)
How I Turned GitHub Copilot Into My Coding Sidekick (And Why It Feels Like Cheating) Spoiler: It’s not cheating. It’s collaboration —with...
-
How I Turned GitHub Copilot Into My Coding Sidekick (And Why It Feels Like Cheating) Spoiler: It’s not cheating. It’s collaboration —with...
-
Here is the beginning of a progressive documentation of Maven. Useful commands >>mvn {{command}} clean compile package site ...
-
Minecraft server enable to create a virtual world. Then you can connect from Minecraft from "Multiplayer". Requirements Installi...
Aucun commentaire:
Enregistrer un commentaire