Ejemplo n.º 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         MyCar c = new MyCar(Form1.WorkTaxi.AllCars()[comboBox1.SelectedIndex].Marka, Form1.WorkTaxi.AllCars()[comboBox1.SelectedIndex].ClassOfCar, Form1.WorkTaxi.AllCars()[comboBox1.SelectedIndex].ForPassagers, Form1.WorkTaxi.AllCars()[comboBox1.SelectedIndex].MaxNumberOfPassagerOrVantazhKG, Form1.WorkTaxi.AllCars()[comboBox1.SelectedIndex].Image);
         c.ShowDialog();
     }
     catch { }
 }
Ejemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         MyCar w = new MyCar();
         w.ShowDialog();
         RefreshCars();
     }
     catch { }
 }