public void LoadExamplestate()
        {
            roadTextures = RoadRepository
                           .InitializeRoadRepository()
                           .GetOneRoadTextureMap("assets/straight-road.png");

            edgePipes = RoadRepository
                        .InitializeRoadRepository()
                        .GetAllFromFile("../../data/Roads.xml");

            vehicles = VehicleRepository
                       .InitializeVehicleRepository()
                       .GetAllFromFile("../../data/Vehicles.xml", edgePipes);

            intersections = IntersectionRepository
                            .InitializeIntersectionRepository()
                            .GetAllFromFile("../../data/Intersections.xml", edgePipes);
        }
        private void RestartButton_Click(object sender, RoutedEventArgs e)
        {
            coordinator.Stop();

            state.vehicles.Clear();
            state.intersections.Clear();
            vehicleLabelButtons.Clear();
            Vehicles.Children.Clear();

            state.vehicles = VehicleRepository
                             .InitializeVehicleRepository()
                             .GetAllFromFile("../../data/Vehicles.xml", state.edgePipes);

            state.intersections = IntersectionRepository
                                  .InitializeIntersectionRepository()
                                  .GetAllFromFile("../../data/Intersections.xml", state.edgePipes);

            GenerateVehicles();

            coordinator.Start();
        }