public EmailInputUserControl(IUserControlContainer container, int score, GameManager gameManager, BitmapSource picture)
 {
     InitializeComponent();
     this._score       = score;
     this._gameManager = gameManager;
     _windowContainer  = container;
     PictureTakenBackgroundImage.ImageSource = picture;
 }
 public EmailInputUserControl(IUserControlContainer container, int score, GameManager gameManager, BitmapSource picture)
 {
     InitializeComponent();
     this._score = score;
     this._gameManager = gameManager;
     _windowContainer = container;
     PictureTakenBackgroundImage.ImageSource = picture;
 }
 public ScoreUserControl(IUserControlContainer container, GameManager gameManager, BitmapSource picture, string score)
 {
     InitializeComponent();
     _gameManager     = gameManager;
     _windowContainer = container;
     PictureTakenBackgroundImage.ImageSource = picture;
     _backgroundPicture = picture;
     _score             = score;
     ScoreText.Text     = score;
 }
 public ScoreUserControl(IUserControlContainer container, GameManager gameManager, BitmapSource picture, string score)
 {
     InitializeComponent();
     _gameManager = gameManager;
     _windowContainer = container;
     PictureTakenBackgroundImage.ImageSource = picture;
     _backgroundPicture = picture;
     _score = score;
     ScoreText.Text = score;
 }
Esempio n. 5
0
 public InstructionsUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     if (KinectOutputToImage.isCalibrate)
     {
         CalibrateButton.IsEnabled = true;
     }
     _gameManager     = gameManager;
     _windowContainer = container;
 }
        public HighScoresUserControl(IUserControlContainer container, GameManager gameManager)
        {
            InitializeComponent();
            _windowContainer = container;
            _gameManager     = gameManager;
            List <Score> highscores = gameManager.GetFiveHighScores();

            int i = 0;

            foreach (Score s in highscores)
            {
                GetTextBlockByIndex(i).Text = ScoreToString(s.Value, s.Nom);
                if (i++ == 5)
                {
                    break;
                }
            }
        }
Esempio n. 7
0
        public GameUserControl(IUserControlContainer container, GameManager gameManager)
        {
            loadWindow = new LoadingWindow("Calibrage de la Kinect . . .");
            loadWindow.Show();

            InitializeComponent();
            _gameManager = gameManager;
            LoadShape(gameManager.GetRandomShape());
            textTime.Text    = TIME_TO_PLAY.ToString();
            _currentTime     = TIME_TO_PLAY;
            _windowContainer = container;

            _kinectOutput             = new KinectOutputToImage();
            _kinectOutput.ImageReady += OnImageReady;
            _kinectOutput.ImageReady += OnGameStart;

            _kinectOutput.kinectSensor.ColorStream.Enable(ColorImageFormat.RgbResolution1280x960Fps12);
            _colorBitmap = new WriteableBitmap(_kinectOutput.kinectSensor.ColorStream.FrameWidth, _kinectOutput.kinectSensor.ColorStream.FrameHeight, 96.0, 96.0, PixelFormats.Bgr32, null);
        }
        public GameUserControl(IUserControlContainer container, GameManager gameManager)
        {
            loadWindow = new LoadingWindow("Calibrage de la Kinect . . .");
            loadWindow.Show();

            InitializeComponent();
            _gameManager = gameManager;
            LoadShape(gameManager.GetRandomShape());
            textTime.Text = TIME_TO_PLAY.ToString();
            _currentTime = TIME_TO_PLAY;
            _windowContainer = container;

            _kinectOutput = new KinectOutputToImage();
            _kinectOutput.ImageReady += OnImageReady;
            _kinectOutput.ImageReady += OnGameStart;

            _kinectOutput.kinectSensor.ColorStream.Enable(ColorImageFormat.RgbResolution1280x960Fps12);
            _colorBitmap = new WriteableBitmap(_kinectOutput.kinectSensor.ColorStream.FrameWidth, _kinectOutput.kinectSensor.ColorStream.FrameHeight, 96.0, 96.0, PixelFormats.Bgr32, null);
        }
 public MainMenuUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     _gameManager     = gameManager;
     _windowContainer = container;
 }
Esempio n. 10
0
 public CreditsUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     this.gameManager = gameManager;
     windowContainer  = container;
 }
 public MainMenuUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     _gameManager = gameManager;
     _windowContainer = container;
 }
 public CreditsUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     this.gameManager = gameManager;
     windowContainer = container;
 }