Exemple #1
0
        private void selectButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            RelationshipForm tree = new RelationshipForm(people, person);

            tree.ShowDialog();
            this.Close();
        }
 private void viewButton_Click(object sender, EventArgs e)
 {
     if (personListBox.SelectedIndex != -1)
     {
         Form f1 = new RelationshipForm(people, (Person)personListBox.SelectedItem);
         this.Hide();
         f1.Show();
     }
 }