Ejemplo n.º 1
0
 // for updating GUI on fuel tank selection
 private void SelectFuelTank(FuelTank fuelTank)
 {
     // setting values of the selected fueltank
     SelectedFuelTankLabel.Content = fuelTank.GetFuelType().GetFuelTypeName() + " Tank";
     FuelTankFilling.Content       = fuelTank.GetCurrentFuelAmount().ToString() + "/" + fuelTank.GetMaxCapacity().ToString() + "L";
     FuelTankPercentage.Content    = fuelTank.GetFillPercentage().ToString("n2") + "%";
     selectedFuelTank = fuelTank;
 }