Esempio n. 1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public MainWindow_ViewModel()
        {
            _boardModel     = new Reversi.Engine.Board();
            Board_ViewModel = new Board_ViewModel(_boardModel);

            undoCMD  = new DelegateCommand(() => Undo());
            passCMD  = new DelegateCommand(() => Pass());
            startCMD = new DelegateCommand(() => Start());
        }
Esempio n. 2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public MainWindow_ViewModel()
        {
            _boardModel = new Reversi.Engine.Board();
            Board_ViewModel = new Board_ViewModel(_boardModel);

            undoCMD = new DelegateCommand(() =>Undo());
            passCMD = new DelegateCommand(() => Pass());
            startCMD = new DelegateCommand(() => Start());
        }