예제 #1
0
        private void buttonBack_Click(object sender, EventArgs e)
        {
            var form = new FormTravm(vidsporta, rayon, cena, cenaekip, vozrast, trebovaniya, comand);

            form.Show();
            this.Hide();
        }
예제 #2
0
        private void buttonNext_Click(object sender, EventArgs e)
        {
            if (!Check())
            {
                MessageBox.Show("Выберите хотя бы один пункт", "Ошибка", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return;
            }
            List <string> comand = new List <string>();

            foreach (Control c in this.Controls)
            {
                if (c is CheckBox && (c as CheckBox).Checked)
                {
                    comand.Add(c.Text);
                }
            }
            var form = new FormTravm(vidsporta, rayon, cena, cenaekip, vozrast, trebovaniya, comand);

            form.Show();
            this.Hide();
        }