コード例 #1
0
 private void buttonAddFamily_Click(object sender, EventArgs e)
 {
     listFamiliesForm form = new listFamiliesForm(this, quatre);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     if (form.SelectedFamily != null)
     {
         Family selectedfamily = form.SelectedFamily;
         Label label = new Label();
         label.Text = selectedfamily.ID + " " + selectedfamily.SpouseName(this.individual);
         label.Tag = selectedfamily.ID;
         lstFamilies.Items.Add(label);
     }
 }
コード例 #2
0
 private void buttonAddParentFamily_Click(object sender, EventArgs e)
 {
     listFamiliesForm form = new listFamiliesForm(this, quatre);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     if (form.SelectedFamily != null)
     {
         Family selectedfamily = form.SelectedFamily;
         lblParentFamily.Tag = selectedfamily.ID;
         lblParentFamily.Text = selectedfamily.ID + " " + selectedfamily.DisplayName;
     }
 }