Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //creer list contact
            List <Contact> LstPerson = new List <Contact>();
            //creer registre
            RegistreContact listo = new RegistreContact(LstPerson);

            //lire le fichier xml
            Manipulation.Readfile(listo);

            Application.Run(new Form1(listo));
        }
Esempio n. 2
0
 //sauvgarder le registreContact dans le ficher text en fermant l'application
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     Manipulation.WriteFile(Lste);
 }