void familylink_Click(object sender, EventArgs e)
 {
     int familyid = Convert.ToInt16(((LinkLabel)sender).Tag);
     formFamily form = new formFamily(this, quatre, familyid);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     DrawDetails();
 }
Ejemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (listFamilies.SelectedItems.Count > 0)
     {
         int familyid = (int)listFamilies.SelectedItems[0].Tag;
         formFamily form = new formFamily(this, quatre, familyid);
         form.StartPosition = FormStartPosition.CenterParent;
         form.ShowDialog(this);
         drawFamily(familyid);
     }
 }
 private void buttonNewFamily_Click(object sender, EventArgs e)
 {
     if (this.selectedIndividual != null)
     {
         formFamily form = new formFamily(this, quatre, this.selectedIndividual);
         form.StartPosition = FormStartPosition.CenterParent;
         form.ShowDialog(this);
         DrawDetails();
         if (form.Family != null)
         {
             this.familyadded = true;
             MessageBox.Show(this, "Successfully created new Family", "Quatre Family Editor", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }
Ejemplo n.º 4
0
 private void newFamilyButton_Click(object sender, EventArgs e)
 {
     formFamily form = new formFamily(this, quatre);
     form.StartPosition = FormStartPosition.CenterParent;
     form.ShowDialog(this);
     loadList();
 }