예제 #1
0
        private void buttonAddChild_Click(object sender, EventArgs e)
        {
            setFamilyDetailsFromFrom();

            listIndividualsForm form = new listIndividualsForm(quatre, this, true, enums.ListFilter.None, this.family);
            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            if (form.selectedIndividual != null)
            {
                Individual selectedindividual = form.selectedIndividual;
                Label label = new Label();
                label.Text = selectedindividual.ID + " " + selectedindividual.DisplayName;
                label.Tag = selectedindividual.ID;
                lstChildren.Items.Add(label);
            }
        }
예제 #2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     listIndividualsForm form = new listIndividualsForm(quatre, this, false, enums.ListFilter.None);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     if (form.FamilyAdded)
     {
         loadList();
     }
     else
     {
         populateList(txtSearch.Text);
     }
 }
예제 #3
0
 private void buttonSelectWife_Click(object sender, EventArgs e)
 {
     listIndividualsForm form = new listIndividualsForm(quatre, this, true, enums.ListFilter.Female);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     if (form.selectedIndividual != null)
     {
         Individual selectedindividual = form.selectedIndividual;
         lblWife.Tag = selectedindividual.ID;
         lblWife.Text = selectedindividual.ID + " " + selectedindividual.DisplayName;
     }
 }