Пример #1
0
        /// <summary>
        /// Открываем машину
        /// </summary>
        private void carClick(object sender, EventArgs e)
        {
            Button   btn  = (Button)sender;
            LadaForm lada = new LadaForm(btn.Text);

            lada.Show();
        }
Пример #2
0
 /// <summary>
 /// Открываем машину
 /// </summary>
 public static void carClick2(object sender, EventArgs e)
 {
     for (int i = 0; i < car_list.Count; i = i + 1)
     {
         if (((PictureBox)sender).Image == car_list[i].picture.Image)
         {
             LadaForm lada = new LadaForm(car_list[i]);
             lada.Show();
         }
     }
 }
Пример #3
0
 /// <summary>
 /// Открываем машину
 /// </summary>
 public static void carClick(object sender, EventArgs e)
 {
     for (int i = 0; i < car_list.Count; i = i + 1)
     {
         if (((Button)sender).Text == car_list[i].btn.Text)
         {
             LadaForm lada = new LadaForm(car_list[i]);
             lada.Show();
         }
     }
 }