Esempio n. 1
0
        static void Main(string[] args)
        {
            Person root  = Familytree.BuildTree();
            Person found = Familytree.Find(root);

            WriteLine(found);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Person root = Familytree.BuildTree();

            Person found = Familytree.Find(root);

            WriteLine(found.LastName + " " + found.FirstName);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Person root = Familytree.BuildTree();

            Person found = Familytree.Find(root);

            //Person age = DateTime.Now.Year - Find.DateOfBirth.Year;
            WriteLine(root);
            WriteLine(found.FirstName + " " + found.LastName + " " + found.DateOfBirth);


            //WriteLine(found.Dad.FirstName + " " + found.Dad.LastName);
            //WriteLine(found.Mom.FirstName + " " + found.Mom.LastName);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Person root = Familytree.BuildTree();

            Person found = Familytree.Find(root);

            if (found != null)
            {
                WriteLine(found.FirstName);
            }
            else
            {
                WriteLine("Keine Person in dieser Alterspanne gefunden");
            }
        }