예제 #1
0
파일: Program.cs 프로젝트: GKaba/phonebook
        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));
        }
예제 #2
0
 //sauvgarder le registreContact dans le ficher text en fermant l'application
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     Manipulation.WriteFile(Lste);
 }