Exemple #1
0
        public static void WriteXML(DataSave ds)
        {
            System.Xml.Serialization.XmlSerializer writer =
                new System.Xml.Serialization.XmlSerializer(typeof(DataSave));

            System.IO.StreamWriter file = new System.IO.StreamWriter(DataSavePath);
            writer.Serialize(file, ds);
            file.Close();
        }
Exemple #2
0
 static void Main()
 {
     DataSave ds = new DataSave();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Form1());
 }