private void gameField_Click(object sender, RoutedEventArgs e) { Button btn = sender as Button; _model.ButtonClicked(int.Parse(btn.Tag.ToString())); }