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(); }
static void Main() { DataSave ds = new DataSave(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }