public void SerialiserFenetre(int weight, int height, int splitterdistance, int locX, int locY) { SaveForm save = new SaveForm(weight, height, splitterdistance, locX, locY); XmlSerializer serializer = new XmlSerializer(typeof(SaveForm)); TextWriter writer = new StreamWriter("IHM_serialisation.xml"); serializer.Serialize(writer, save); writer.Close(); }
//methodes public void SerialiserFenetre(int weight, int height, int splitterdistance, int locX, int locY) { SaveForm save = new SaveForm(weight,height,splitterdistance,locX,locY); XmlSerializer serializer = new XmlSerializer(typeof(SaveForm)); TextWriter writer = new StreamWriter("fichier_temp.xml"); //TODO modifier le fichier serializer.Serialize(writer, save); writer.Close(); }