Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public void score(int calcScore)
  2. {
  3. lblScore.Text += calcScore.ToString();
  4. }
  5.  
  6. private void square_DragDrop(object sender, DragEventArgs e)
  7. {
  8. if(shape.Contains("Square"))
  9. {
  10. int calcScore = 0;
  11. calcScore++;
  12. score(calcScore);
  13. }
  14. }
  15.  
  16. private void circle_DragDrop(object sender, DragEventArgs e)
  17. {
  18. if(shape.Contains("Circle"))
  19. {
  20. int calcScore = 0;
  21. calcScore++;
  22. score(calcScore);
  23. }
  24. }
  25.  
  26. public void score(int calcScore)
  27. {
  28. int totalScore =0;
  29. totalScore = totalScore + calcScore;
  30. lblScore.Text += totalScore.ToString();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement