Example #1
0
        static void Main(string[] args)
        {
            List <Contact> Contacts = new List <Contact>();

            Contact contact1 = new Contact("Anders", 1992, true);
            Contact contact2 = new Contact("Nikolai", 1994, false);
            Contact contact3 = new Contact("Nanna", 2003, true);
            Contact contact4 = new Contact("Joan", 1960, true);

            Contacts.Add(contact1);
            Contacts.Add(contact2);
            Contacts.Add(contact3);
            Contacts.Add(contact4);

            foreach (Contact contact in Contacts)
            {
                contact.printsummary();
            }

            contact1.Email = "*****@*****.**";

            foreach (Contact contact in Contacts)
            {
                contact.printsummary();
            }


            HomeTheaterTest.Run();


            KeepConsoleWindowOpen();
        }
Example #2
0
        static void Main(string[] args)
        {
            /*
             * Contact contact1 = new Contact("Jack Swigert", 1500, true);
             * Contact contact2 = new Contact("Dennis Ritchie", 1970, false);
             *
             * contact2.Email = "*****@*****.**";
             *
             * contact1.PrintSummary();
             * Console.WriteLine();
             * contact2.PrintSummary();
             */

            HomeTheaterTest.Run();

            KeepConsoleWindowOpen();
        }