Exemple #1
0
 private void construirTitulo()
 {
     pacientes = new List <paciente>();
     title     = new Titulo("Test Raven", 100, 500, @"Fuentes\fuenteTitulo", Content);
     datosPers = new Titulo("Datos Personales", Content, @"Fuentes\fuenteMenu", 230, 140);
     menu      = new Menu(800, 100, 10, rutaFuente, opcMenu);
     menu.LoadContent(Content);//1
     hand      = new mano(12, 3, 5, 5, @"Imagenes\mano");
     fondoTest = new fondo(@"Imagenes\fondo");
     albertIMG = new albert(269, 413, 830, 300, @"Imagenes\albert");
     //logoUM = new logos(210, 75, 10, 620, @"Imagenes\logos");
     logoUM      = new imagenStatic(210, 75, 10, 620, @"Imagenes\logos");
     tableResult = new tablaResultados(@"Fuentes\fuenteLb");
     sonidoFondo = new generaSonido(@"Sonido\house", Content, true);
 }
Exemple #2
0
        private void construirFormulario()
        {
            textBox      = new TextBox(338, 230, false);
            passWord     = new TextBox(460, 330, true);
            comboboxSexo = new ComboBox(230, 310, opcsSexo);
            comboboxEdad = new ComboBox(525, 310, opcsEdad);

            //lbNombre = new nombre("Nombre: ", 230, 230, @"Fuentes\fuenteLb");
            lbNombre   = new Label("Nombre: ", 230, 230, @"Fuentes\fuenteLb");
            lbEdad     = new Label("Edad: ", 610, 275, @"Fuentes\fuenteLb");
            lbSexo     = new Label("Sexo: ", 320, 275, @"Fuentes\fuenteLb");
            lbIq       = new Label("IQ", 900, 80, @"Fuentes\fuenteLb");
            lbNumero   = new Label("Nº", 250, 80, @"Fuentes\fuenteLb");
            lbPassword = new Label("Clave: ", 370, 330, @"Fuentes\fuenteLb");//F
            ayudaMen   = new mensajeAyuda(@"Fuentes\fuenteLb");
            //lbDatosPersonal = new datosPersonales("Datos Personales", 230, 140, @"Fuentes\fuenteMenu");

            fondoDatos      = new imagenStatic(586, 79, 200, 129, @"Imagenes\Tabla\FondoDatosPersonales");
            marcoFondoDatos = new imagenStatic(586, 79, 200, 129, @"Imagenes\Tabla\marcoDatosPersonales");
            fondoForm       = new imagenStatic(600, 320, 200, 200, @"Imagenes\Formulario\fondoFormulario");
            marcoFondo      = new imagenStatic(610, 330, 200, 200, @"Imagenes\Formulario\marcoFondoForm");
            //fondoContra = new fondoContrasenya(586, 188, graphics.GraphicsDevice.ScissorRectangle.Width / 2 - 586 / 2, graphics.GraphicsDevice.ScissorRectangle.Height / 2 - 188 / 2, @"Imagenes\Formulario\fondoContrasenya");
            fondoContra         = new imagenStatic(586, 188, graphics.GraphicsDevice.ScissorRectangle.Width / 2 - 586 / 2, graphics.GraphicsDevice.ScissorRectangle.Height / 2 - 188 / 2, @"Imagenes\Formulario\fondoContrasenya");
            marcoFondoContra    = new imagenStatic(586, 188, graphics.GraphicsDevice.ScissorRectangle.Width / 2 - 586 / 2, graphics.GraphicsDevice.ScissorRectangle.Height / 2 - 188 / 2, @"Imagenes\Formulario\marcoFondoContrasenya");
            fondoTable          = new imagenStatic(900, 590, 200, 60, @"Imagenes\Tabla\fondoTabla");
            marcoFondoTable     = new imagenStatic(900, 590, 200, 60, @"Imagenes\Tabla\marcoFondoTabla");
            separadorHorizontal = new List <imagenStatic>();
            separadorVertical   = new List <imagenStatic>();
            cabeceraTabla       = new imagenStatic(949, 49, 207, 66, @"Imagenes\Tabla\cabeceraTabla");
            lateralTabla        = new imagenStatic(99, 448, 207, 117, @"Imagenes\Tabla\lateralTabla");
            createSeparadores();

            btComenzar   = new boton(150, 40, 430, 490, 20, 2, @"Imagenes\Formulario\btComenzar", false, "Comenzar");
            btAceptar    = new boton(150, 40, (graphics.GraphicsDevice.ScissorRectangle.Width / 2) - (150 / 2), 390, 30, 2, @"Imagenes\Formulario\btComenzar", false, "Aceptar");
            btError      = new boton(150, 40, (graphics.GraphicsDevice.ScissorRectangle.Width / 2) - (150 / 2), 390, 30, 2, @"Imagenes\Formulario\btComenzar", true, "Aceptar");
            btMenuPcipal = new menuPcipal(380, 40, (graphics.GraphicsDevice.ScissorRectangle.Width / 2) - (380 / 2), 650, @"Imagenes\Formulario\menuPrincipal");
            btSalir      = new menuPcipal(136, 40, (graphics.GraphicsDevice.ScissorRectangle.Width) - 136 * 2, 650, @"Imagenes\Formulario\salir");
            btAnterior   = new boton(150, 40, 450, 583, 70, 3, @"Imagenes\Formulario\btComenzar", true, "<");
            btSiguiente  = new boton(150, 40, 750, 583, 70, 3, @"Imagenes\Formulario\btComenzar", true, ">");
        }
Exemple #3
0
        private void createSeparadores()
        {
            imagenStatic sepH;
            imagenStatic sepV;
            int          yH = 115;
            int          xV = 310;

            for (int i = 0; i < 11; i++)
            {
                sepH = new imagenStatic(947, 7, 202, yH, @"Imagenes\Tabla\separadorHorizontal");
                separadorHorizontal.Add(sepH);
                yH += 45;
            }
            for (int i = 0; i < 4; i++)
            {
                sepV = new imagenStatic(4, 502, xV, 67, @"Imagenes\Tabla\separadorVertical");
                separadorVertical.Add(sepV);
                switch (i)
                {
                case 0:
                    xV += 280;
                    break;

                case 1:
                    xV += 90;
                    break;

                case 2:
                    xV += 158;
                    break;

                case 3:
                    xV += 100;
                    break;
                }
                //xV += 100;
            }
        }