void CurrentBanCo_OnLoad(Models.OCo Oco) { Button cell = board.Children[Oco.Row * Settings.Default.BOARD_SIZE + Oco.Col] as Button; if (Oco.OfPlayer == Models.OCo.CellValues.Player1) { cell.Content = CreateEllipse(Colors.Black); } else { cell.Content = CreateEllipse(Colors.White); } }
void CurrentBanCo_OnUndo(Models.OCo OCo) { (board.Children[OCo.Row * Settings.Default.BOARD_SIZE + OCo.Col] as Button).Content = null; }
void CurrentBanCo_OnRedo(Models.OCo OCo) { SetButtonContent(board.Children[OCo.Row * Settings.Default.BOARD_SIZE + OCo.Col] as Button); }