public MapBuilder(MarkerFinder markerFinder, ObstaclesFinder obstaclesFinder, ObjectsToTrace objectsToTrace) { markerFinder_ = markerFinder; obstaclesFinder_ = obstaclesFinder; objectsToTrace_ = objectsToTrace; }
public MainWindow() { glyphRecogniser = new GlyphRecognitionStudio.MainForm(); glyphRecogniser.frameProcessed += glyphRecogniser_frameProcessed; glyphRecogniser.Show(); glyphRecogniser.Hide(); carController = new CarController.DefaultCarController(); carControllerWindow = new CarController.MainWindow(carController); carControllerWindow.Show(); InitializeComponent(); Canvas_trackPlanner.Children.Add(plannerBackGround); //REMOVE IT FROM HERE MarkerFinder markerFinder = new MarkerFinder(); ObstaclesFinder obstaclesFinder = new ObstaclesFinder(); ObjectsToTrace objectsToTrace = new ObjectsToTrace(new List<string>() { "s1", "s2" }, "car", "parking"); mapBuilder = new MapBuilder(markerFinder, obstaclesFinder, objectsToTrace); }