private void PvCmode() { ResetBoard(); ResetButton(); btnPvC.Foreground = new SolidColorBrush(Colors.Yellow); BanCoViewModel.PvC(); }
public MainWindow() { InitializeComponent(); SetButtonClick(); BanCoViewModel = new BanCoViewModel(); BanCoViewModel.CurrentBanCo.OnPlayerAt += CurrentBanCo_OnPlayerAt; BanCoViewModel.CurrentBanCo.OnPlayerWin += CurrentBanCo_OnPlayerWin; BanCoViewModel.CurrentBanCo.OnUndo += CurrentBanCo_OnUndo; BanCoViewModel.CurrentBanCo.OnRedo += CurrentBanCo_OnRedo; BanCoViewModel.PvC(); DrawBoard(Settings.Default.BOARD_SIZE); }
private void PvCmode() { ResetBoard(); BanCoViewModel.PvC(); }