public MainWindow() { InitializeComponent(); _mainWindowModel = new MainWindowModel(); DataContext = _mainWindowModel; _sudokuController = new sudokubasis.SudokuController(_mainWindowModel); _mainWindowModel.RegisterController(_sudokuController); }
/// <summary> /// Registers the controller to this object. /// </summary> /// <param name="controller">The controller to be registered.</param> public void RegisterController(sudokubasis.SudokuController controller) { _controller = controller; }