示例#1
0
        private static void Add_Child()
        {
            Console.WriteLine("Enter  ID:");
            string id = Console.ReadLine();

            Console.WriteLine("Enter  first name:");
            string firstName = Console.ReadLine();

            Console.WriteLine("Enter last name:");
            string LasttName = Console.ReadLine();

            Console.WriteLine("Enter Mother ID:");
            string motherID = Console.ReadLine();

            Console.WriteLine("Enter birth date: (xx/yy/zzzz)");
            DateTime bitrh_date = Convert.ToDateTime(Console.ReadLine());

            Console.WriteLine("had special needs? (y/n)");
            bool specialNeeds = yes_or_no(Convert.ToChar(Console.ReadLine()));

            Console.WriteLine("explan:");
            string infoSpecialNeeds = Console.ReadLine();

            BE.Child child = new Child(id, firstName, LasttName, motherID, bitrh_date, specialNeeds, infoSpecialNeeds);
            bl.addChild(child);
        }