Exemplo n.º 1
0
 private void CarButton_Click(object sender, EventArgs e)
 {
     trip.TripTransport = Transport.Car;
     trip.CountPrice();
     trip.CountTime();
     tripBox.Text = trip.ToString();
 }
Exemplo n.º 2
0
        private void WatersBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            trip = new TripToWater();
            var water = new WaterImplementation();

            trip.TripWater         = water.GetLVL(Game.GetGame().Waters[watersBox.SelectedIndex]);
            mapBox.BackgroundImage = trip.TripWater.MapImage;
            trip.CountPrice();
            trip.CountTime();
            tripBox.Text = trip.ToString();
        }