Esempio n. 1
0
        public void Componentes_Panel()
        {
            //Creacion de los componentes del panel
            btn_volver.Location = new System.Drawing.Point(23, 311);
            btn_volver.Name     = "btn_volver";
            btn_volver.Size     = new System.Drawing.Size(75, 23);

            btn_volver.Text = "Volver";
            btn_volver.UseVisualStyleBackColor = true;
            btn_volver.Click   += new System.EventHandler(evento_volver);//Evento que regresara a la forma enterior
            btn_volver.TabIndex = 12;

            btn_agregar.Location = new System.Drawing.Point(369, 292);
            btn_agregar.Name     = "btn_agregar";
            btn_agregar.Size     = new System.Drawing.Size(75, 42);
            btn_agregar.Text     = "Agregar";
            btn_agregar.UseVisualStyleBackColor = true;
            btn_agregar.Click   += new System.EventHandler(evento_agregar);//Evento agregar
            btn_agregar.TabIndex = 11;

            text4.Location = new System.Drawing.Point(166, 12);
            text4.Name     = "nombres";
            text4.TabIndex = 0;
            text4.Size     = new System.Drawing.Size(100, 20);


            text5.Location = new System.Drawing.Point(166, 64);
            text5.Name     = "a_paterno";
            text5.TabIndex = 1;
            text5.Size     = new System.Drawing.Size(100, 20);


            text6.Location = new System.Drawing.Point(166, 123);
            text6.Name     = "a_materno";
            text6.TabIndex = 2;
            text6.Size     = new System.Drawing.Size(100, 20);


            text7.Location  = new System.Drawing.Point(165, 181);
            text7.Name      = "correo";
            text7.TabIndex  = 3;
            text7.Size      = new System.Drawing.Size(100, 20);
            text7.KeyPress += new KeyPressEventHandler(evento_correo);

            masked2.Location = new System.Drawing.Point(165, 223);
            masked2.TabIndex = 4;
            masked2.Name     = "telefono";
            masked2.Size     = new System.Drawing.Size(77, 20);
            masked2.Mask     = "9999999999";

            text8.Location = new System.Drawing.Point(165, 278);
            text8.Name     = "curp";
            text8.TabIndex = 5;
            text8.Size     = new System.Drawing.Size(100, 20);

            text9.Location = new System.Drawing.Point(368, 10);
            text9.Name     = "colonia";
            text9.TabIndex = 6;
            text9.Size     = new System.Drawing.Size(100, 20);

            text10.Location = new System.Drawing.Point(368, 59);
            text10.Name     = "ciudad";
            text10.TabIndex = 7;
            text10.Size     = new System.Drawing.Size(100, 20);

            text11.Location = new System.Drawing.Point(368, 114);
            text11.Name     = "txt_Limite_Credito";
            text11.TabIndex = 8;
            text11.Size     = new System.Drawing.Size(100, 20);
            text11.Mask     = "9999999999";

            masked3.Location       = new System.Drawing.Point(395, 174);
            masked3.Mask           = "99999";
            masked3.Name           = "txt_id_cliente";
            masked3.TabIndex       = 9;
            masked3.Size           = new System.Drawing.Size(39, 20);
            masked3.ValidatingType = typeof(int);

            masked4.Location = new System.Drawing.Point(395, 236);
            masked4.Mask     = "00000";
            masked4.TabIndex = 10;
            masked4.Name     = "txt_id_datos";
            masked4.Size     = new System.Drawing.Size(39, 20);


            Panel_Clientes.Controls.Add(btn_volver);
            Panel_Clientes.Controls.Add(btn_agregar);
            Panel_Clientes.Controls.Add(l_5.Nombres_Cliente());//Se invoca el objeto de la forma y depues la funcion de la libreria, igual para los demas labels del panel
            Panel_Clientes.Controls.Add(l_6.A_P_Cliente());
            Panel_Clientes.Controls.Add(l_7.A_M_Cliente());
            Panel_Clientes.Controls.Add(l_8.Correo_Cliente());
            Panel_Clientes.Controls.Add(l_9.Telefono_Cliente());
            Panel_Clientes.Controls.Add(l_10.Curp_Cliente());
            Panel_Clientes.Controls.Add(l_11.Colonia_Cliente());
            Panel_Clientes.Controls.Add(l_12.Ciudad_Cliente());
            Panel_Clientes.Controls.Add(l_13.Calle_Cliente());
            Panel_Clientes.Controls.Add(l_14.Numero_Cliente());
            Panel_Clientes.Controls.Add(l_15.CP_Cliente());
            Panel_Clientes.Controls.Add(text4);
            Panel_Clientes.Controls.Add(text5);
            Panel_Clientes.Controls.Add(text6);
            Panel_Clientes.Controls.Add(text7);
            Panel_Clientes.Controls.Add(text8);
            Panel_Clientes.Controls.Add(text9);
            Panel_Clientes.Controls.Add(text10);
            Panel_Clientes.Controls.Add(text11);
            Panel_Clientes.Controls.Add(masked2);
            Panel_Clientes.Controls.Add(masked3);
            Panel_Clientes.Controls.Add(masked4);
        }