Example #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            TreeDisplay n = new TreeDisplay(paternal_grandfather);

            n.MdiParent = this.MdiParent;
            n.Show();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            TreeDisplay n = new TreeDisplay(mother);

            n.MdiParent = this.MdiParent;
            n.Show();
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (child.siblings == null)
            {
                MessageBox.Show(child.FullName + " hat keine Geschwister.");
                return;
            }
            else if (child.siblings.Count == 0)
            {
                MessageBox.Show(child.FullName + " hat keine Geschwister.");
                return;
            }

            Person target = PersonSelector.DoSelection(this, child.siblings);

            if (target == null)
            {
                return;
            }
            TreeDisplay td = new TreeDisplay(target);

            td.MdiParent = this.MdiParent;
            td.Show();
        }
Example #4
0
        private void baumansichtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bloodline data = memoryCard.GetData();

            if (data.Count == 0)
            {
                return;
            }

            Person target   = null;
            int    branches = 0;

            foreach (Person p in data)
            {
                if (p.Generations > branches)
                {
                    target   = p;
                    branches = p.Generations;
                }
            }
            TreeDisplay ed = new TreeDisplay(target);

            ed.Show();
        }