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

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

            Person found = Familytree.Find(root);

            WriteLine(found.LastName + " " + found.FirstName);
        }
Ejemplo 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);
        }
Ejemplo 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");
            }
        }