Esempio n. 1
0
        private void buttonBack_Click(object sender, EventArgs e)
        {
            var form = new FormComand(vidsporta, rayon, cena, cenaekip, vozrast, trebovaniya);

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

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

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