Пример #1
0
        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();
        }
Пример #2
0
        //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();
        }