private void GetObstacles() { var obstacles = ObstacleFactory.ObstacleProfiles; //var obstacles = Enum.GetValues(typeof(ObstacleType)).Cast<ObstacleType>(); foreach (var profile in obstacles) { var obst = new Obstacle(profile); Obstacles.Add(obst.ToObstacleViewModel()); } }
private void GetObstacles() { var obstacles = ObstacleProfiles; foreach (var profile in obstacles) { var obst = new Obstacle(profile); if (obst.Type == "Brak") continue; Obstacles.Add(obst.ToObstacleViewModel()); } }