예제 #1
0
 public MainWindow()
 {
     InitializeComponent();
     _mainWindowModel = new MainWindowModel();
     DataContext = _mainWindowModel;
     _sudokuController = new sudokubasis.SudokuController(_mainWindowModel);
     _mainWindowModel.RegisterController(_sudokuController);
 }
예제 #2
0
 /// <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;
 }