internal void AddAnalyzedKinectSkeleton()
        {
            AnalyzedKinectSkeleton analyzedSkeleton = new AnalyzedKinectSkeleton();
            analyzedSkeleton.JointMapping = this.JointMapping;
            analyzedSkeleton.InjuryRisks = this.riskAnalyzer.InjuryRisks;
            this.AnalyzedSkeletonCanvasPanel.Children.Add(analyzedSkeleton);

            Canvas canvas = new Canvas();

            double canvasTop = 50.0;
            double canvasRight = 20.0;

            if (riskAnalyzer.InjuryRisks.ContainsKey(JointType.KneeLeft))
            {
                InjuryInfoBox infoBox = new InjuryInfoBox();
                infoBox.DataContext = infoBox;
                infoBox.JointType = "Left Knee";

                switch (riskAnalyzer.InjuryRisks[JointType.KneeLeft])
                {
                    case InjuryRiskType.Low:
                        infoBox.RiskFactor = "Low";
                        break;
                    case InjuryRiskType.Moderate:
                        infoBox.RiskFactor = "Moderate";
                        break;
                    case InjuryRiskType.High:
                        infoBox.RiskFactor = "High";
                        break;
                }

                infoBox.SetValue(Canvas.TopProperty, canvasTop);
                infoBox.SetValue(Canvas.RightProperty, canvasRight);

                canvas.Children.Add(infoBox);

                canvasTop += 100.0;
            }

            if (riskAnalyzer.InjuryRisks.ContainsKey(JointType.KneeRight))
            {
                InjuryInfoBox infoBox = new InjuryInfoBox();
                infoBox.DataContext = infoBox;
                infoBox.JointType = "Right Knee";

                switch (riskAnalyzer.InjuryRisks[JointType.KneeRight])
                {
                    case InjuryRiskType.Low:
                        infoBox.RiskFactor = "Low";
                        break;
                    case InjuryRiskType.Moderate:
                        infoBox.RiskFactor = "Moderate";
                        break;
                    case InjuryRiskType.High:
                        infoBox.RiskFactor = "High";
                        break;
                }

                infoBox.SetValue(Canvas.TopProperty, canvasTop);
                infoBox.SetValue(Canvas.RightProperty, canvasRight);

                canvas.Children.Add(infoBox);
            }

            this.AnalyzedSkeletonCanvasPanel.Children.Add(canvas);
        }
        internal void AddAnalyzedKinectSkeleton()
        {
            AnalyzedKinectSkeleton analyzedSkeleton = new AnalyzedKinectSkeleton();

            analyzedSkeleton.JointMapping = this.JointMapping;
            analyzedSkeleton.InjuryRisks  = this.riskAnalyzer.InjuryRisks;
            this.AnalyzedSkeletonCanvasPanel.Children.Add(analyzedSkeleton);

            Canvas canvas = new Canvas();

            double canvasTop   = 50.0;
            double canvasRight = 20.0;

            if (riskAnalyzer.InjuryRisks.ContainsKey(JointType.KneeLeft))
            {
                InjuryInfoBox infoBox = new InjuryInfoBox();
                infoBox.DataContext = infoBox;
                infoBox.JointType   = "Left Knee";

                switch (riskAnalyzer.InjuryRisks[JointType.KneeLeft])
                {
                case InjuryRiskType.Low:
                    infoBox.RiskFactor = "Low";
                    break;

                case InjuryRiskType.Moderate:
                    infoBox.RiskFactor = "Moderate";
                    break;

                case InjuryRiskType.High:
                    infoBox.RiskFactor = "High";
                    break;
                }

                infoBox.SetValue(Canvas.TopProperty, canvasTop);
                infoBox.SetValue(Canvas.RightProperty, canvasRight);

                canvas.Children.Add(infoBox);

                canvasTop += 100.0;
            }

            if (riskAnalyzer.InjuryRisks.ContainsKey(JointType.KneeRight))
            {
                InjuryInfoBox infoBox = new InjuryInfoBox();
                infoBox.DataContext = infoBox;
                infoBox.JointType   = "Right Knee";

                switch (riskAnalyzer.InjuryRisks[JointType.KneeRight])
                {
                case InjuryRiskType.Low:
                    infoBox.RiskFactor = "Low";
                    break;

                case InjuryRiskType.Moderate:
                    infoBox.RiskFactor = "Moderate";
                    break;

                case InjuryRiskType.High:
                    infoBox.RiskFactor = "High";
                    break;
                }

                infoBox.SetValue(Canvas.TopProperty, canvasTop);
                infoBox.SetValue(Canvas.RightProperty, canvasRight);

                canvas.Children.Add(infoBox);
            }

            this.AnalyzedSkeletonCanvasPanel.Children.Add(canvas);
        }