private void ConnectionManagerOnLineClicked(object sender, LineClickedEventArgs e) { var piece = _model.GetElementAt(e.Row, e.Column) as Line; if (piece != null) { piece.Occupy(e.PlayerId); var player = GetPlayer(e.PlayerId); player.Score++; var button = FindButton(e.Row, e.Column); SetPieceColor(button); } }
private void ConnectionManagerOnLineClicked(object sender, LineClickedEventArgs e) { var piece = _model.GetElementAt(e.Row, e.Column) as Line; if (piece != null) { piece.Occupy(e.PlayerId); var player = GetPlayer(e.PlayerId); player.Score++; var button = FindButton(e.Row, e.Column); SetPieceColor(button); } }