Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. using Microsoft.Kinect;
  16. using System.IO;
  17.  
  18. namespace bowling
  19. {
  20.  
  21. public partial class MainWindow : Window
  22. {
  23. public MainWindow()
  24. {
  25. InitializeComponent();
  26. }
  27.  
  28. public class BallThrow{
  29.  
  30. public BallThrow() {}
  31. public BallThrow(int iPinsKnocked) {
  32. this._iPinsKnocked = iPinsKnocked;
  33.  
  34. }
  35.  
  36. public void Markball (int iPinsKnocked) {
  37. this._iPinsKnocked = iPinsKnocked;
  38. }
  39.  
  40. public void Markball(bool bStrike, bool bSpare) {
  41. this._bThrowIsStrike = bStrike;
  42. this._bThrowIsSpare = bSpare;
  43.  
  44. }
  45. }
  46. public class Frame {
  47. ....
  48. //
  49. public Frame(int iFrameNo) {
  50. this._iFrameNo = iFrameNo;
  51. this._throwList = new List<BallThrow>();
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement