Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
        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();
        }