public DrawingGameConfigPage(string itemId, KinectSensorChooser kinectSensor)
 {
    
     this.InitializeComponent();
     this.kinectSensor = kinectSensor;
     config = new DrawingGameConfig();                                 
     this.DataContext = Config;
 }
        public MainWindow(DrawingGameConfig config)
        {
            _windowSize = new WindowSize();
            _windowSize.Width = SystemParameters.PrimaryScreenWidth;
            _windowSize.Height = SystemParameters.PrimaryScreenHeight;

            StopwatchOfGame = new Stopwatch();
            StopwatchOfOutOfField = new Stopwatch();

            Configuration = config;
            InitializeComponent();

            SkeletonBrushes = new Brush[] { Brushes.Green, Brushes.Blue, Brushes.Red, Brushes.Orange };
            _draftsman = new Draftsman(this);
            _resultSaver = new ResultSaver(this);
            _kinectManager = new KinectManager(this);
            _tracker = new Tracker(this);
        }