Ejemplo n.º 1
0
        private void buttonBack_Click(object sender, EventArgs e)
        {
            var form = new FormVozrast(vidsporta, rayon, cena, cenaekip);

            form.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void buttonNext_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == -1)
            {
                MessageBox.Show("Выберите один пункт", "Ошибка", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return;
            }
            List <int> cenaekip = new List <int>();

            String[] str = comboBox1.SelectedItem.ToString().Replace(" рублей", "").Replace(" и более", "").Split('-');
            foreach (string s in str)
            {
                cenaekip.Add(Convert.ToInt32(s.TrimEnd()));
            }

            if (cenaekip.Count == 1)
            {
                cenaekip.Add(int.MaxValue);
            }
            var form = new FormVozrast(vidsporta, rayon, cena, cenaekip);

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