private void newBtn_Click(object sender, RoutedEventArgs e) { scoreText.Text = "0"; stepText.Text = "0"; board.reset(); board.Children.Clear(); grid = new BoardGridLine(board); initGame(); }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { grid = new BoardGridLine(board); initGame(); }
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { BoardGridLine line = (BoardGridLine)d; line.InvalidateVisual(); }