private void button7_Click(object sender, EventArgs e) { FindForm form = new FindForm(locmodel, true, true); form.ShowDialog(); if (form.DialogResult == DialogResult.Cancel) { form.Close(); } if (form.DialogResult == DialogResult.OK) { father = form.ReturnValue1; form.Close(); } }
private void button6_Click(object sender, EventArgs e) { //2 for female, 1 fo male FindForm form = new FindForm(locmodel, true, false); form.ShowDialog(); if (form.DialogResult == DialogResult.Cancel) { form.Close(); } if (form.DialogResult == DialogResult.OK) { mother = form.ReturnValue1; // motherTextBox = mother; form.Close(); } }
private void человекаToolStripMenuItem_Click(object sender, EventArgs e) { Int32 per = 0; FindForm form = new FindForm(model); form.ShowDialog(); if (form.DialogResult == DialogResult.Cancel) { form.Close(); } if (form.DialogResult == DialogResult.OK) { per = form.ReturnValue1; form.Close(); } this.Refresh(); }