Beispiel #1
0
        private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string curent_index = toolStripComboBox1.SelectedIndex.ToString();

            switch (curent_index)
            {
            case "0":
                Editor_distanation firstForm = new Editor_distanation();
                firstForm.ShowDialog();
                break;

            case "1":
                Form2 secondForm = new Form2(Glades.trains);
                secondForm.ShowDialog();
                break;

            case "2":
                Editor_passanger thirdForm = new Editor_passanger();
                thirdForm.ShowDialog();
                break;
            }
        }
Beispiel #2
0
 private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     string curent_index = toolStripComboBox1.SelectedIndex.ToString();
     switch (curent_index) {
         case "0":
                 Editor_distanation firstForm = new Editor_distanation();
                 firstForm.ShowDialog();
                 break;
         case "1":
                 Form2 secondForm = new Form2(Glades.trains);
                 secondForm.ShowDialog();
                 break;
         case "2":
                 Editor_passanger thirdForm = new Editor_passanger();
                 thirdForm.ShowDialog();
                 break;
     }
 }