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 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 MainWindow()
 {
     InitializeComponent();
     _gameManager = new GameManager();
     LoadContent(new MainMenuUserControl(this, _gameManager));
 }
 public MainMenuUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     _gameManager = gameManager;
     _windowContainer = container;
 }
 public CreditsUserControl(IUserControlContainer container, GameManager gameManager)
 {
     InitializeComponent();
     this.gameManager = gameManager;
     windowContainer = container;
 }