public ToolBarUserControl(MazeEngine mazeEngine) { InitializeComponent(); this.mazeEngine = mazeEngine; sliderValue = new SliderValue(); DataContext = sliderValue; }
private void CreateMazeDrawerAndEngine() { mazeSettings = new MazeSettings(); mazeDrawer = new MazeDrawer(mazeSettings); mazeEngine = new MazeEngine(mazeDrawer, mazeSettings); }