private void performSelect() { if (listIndividuals.SelectedItems.Count > 0) { this.selectedindividual = (Individual)this.individuals[(int)listIndividuals.SelectedItems[0].Tag]; if (this.selectonly) { this.Close(); } else { formIndividual form = new formIndividual(this, quatre, this.selectedindividual); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); DrawDetails(); } } }
private void listIndividuals_DoubleClick(object sender, EventArgs e) { if (listIndividuals.SelectedItems.Count > 0) { this.selectedindividual = (Individual)this.individuals[(int)listIndividuals.SelectedItems[0].Tag]; formIndividual form = new formIndividual(this, quatre, this.selectedindividual); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); DrawDetails(); } }
private void newIndividualButton_Click(object sender, EventArgs e) { formIndividual form = new formIndividual(this, quatre); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); }
private void buttonNew_Click(object sender, EventArgs e) { formIndividual form = new formIndividual(this, this.quatre, this.fromfamily); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); if (form.Individual != null) { loadList(); MessageBox.Show(this, "Successfully created new Individual", "Quatre Family Editor", MessageBoxButtons.OK, MessageBoxIcon.Information); markIndividualSelected(form.Individual.ID); } else { populateList(txtSearch.Text); } }
private void listFamilies_MouseDoubleClick(object sender, MouseEventArgs e) { formIndividual form = new formIndividual(this, quatre, (int)linkNameSurname.Tag); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); if (listFamilies.SelectedItems.Count > 0) { drawFamily((int)listFamilies.SelectedItems[0].Tag); } }