public FreeDetectionForm(Principal pM, AbstractMiddle am) : base(pM)
        {
            mySkeletonUser1 = new HumanSkeleton();
            mySkeletonUser2 = new HumanSkeleton();
            myMiddle        = am;
            myMiddle.reset();
            myMiddle.addUser(mySkeletonUser1);
            myMiddle.addUser(mySkeletonUser2);

            // Render
            myAvatarUser1 = new Avatar(mySkeletonUser1);
            myAvatarUser2 = new Avatar(mySkeletonUser2);
            camara        = new Camera(pM.graphics);

            // Estados
            myStates = DB4ObjectState.loadStates(Environment.CurrentDirectory + "\\Data\\States\\default.sta");

            // Gestos
            myGestures = DB4ObjectGesture.loadGestures(Environment.CurrentDirectory + "\\Data\\Gestures\\default.ges");

            // Crear formulario de edición de gestos
            formGesture = new WFDetectionGestures(this);
            formGesture.Show();

            // Variables de logueo
            logBefore1 = "";
            logBefore2 = "";
            logBefore3 = "";

            this.LoadContent();
        }
        public TeacherForm(Principal pM, AbstractMiddle am) : base(pM)
        {
            mySkeletonUser1   = new HumanSkeleton();
            mySkeletonUser2   = new HumanSkeleton();
            mySkeletonTeacher = new HumanSkeleton();
            myMiddle          = am;
            myMiddle.reset();
            myMiddle.addUser(mySkeletonUser1);
            myMiddle.addUser(mySkeletonUser2);

            // Animación: Para simular el inicio del dispositivo desde un archivo.
            this.loadAnimation(Environment.CurrentDirectory + "\\Data\\Animation\\default.ani");

            // Estados
            this.loadStates(Environment.CurrentDirectory + "\\Data\\States\\default.sta");

            // Gestos
            this.loadGestures(Environment.CurrentDirectory + "\\Data\\Gestures\\default.ges");

            // Render
            myAvatarUser1   = new Avatar(mySkeletonUser1);
            myAvatarUser2   = new Avatar(mySkeletonUser2);
            myAvatarTeacher = new Avatar(mySkeletonTeacher);
            camara          = new Camera(pM.graphics);

            // Crear formulario de edición de gestos
            formGesture = new WFDetectionGestures(this);
            formGesture.Show();

            // Variables de logueo
            logBefore1 = "";
            logBefore2 = "";
            logBefore3 = "";

            this.LoadContent();
        }