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(); }
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); } } }
private void newFamilyButton_Click(object sender, EventArgs e) { formFamily form = new formFamily(this, quatre); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); loadList(); }