Exemple #1
0
 protected void Button7_Click(object sender, EventArgs e)
 {
     // Arbol Espejo
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.espejo();
     Image6.ImageUrl = "EDD\\espejo.png";
 }
    protected void Button2_Click(object sender, EventArgs e)
    {
        // tablero
        ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
        string carga = metodos.CargaMaestra("tablero");

        metodos.generaPruebaArchivoEntrada();
    }
 protected void Button4_Click(object sender, EventArgs e)
 {
     // Elimincar jugador
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.EliminarJugadores(TextBox14.Text.ToString(), TextBox15.Text.ToString());
     TextBox14.Text = "";
     TextBox15.Text = "";
 }
Exemple #4
0
 protected void Button4_Click(object sender, EventArgs e)
 {
     // Eliminar Usuario
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.EliminarUsuario(TextBox10.Text.ToString());
     Image1.ImageUrl = "EDD\\usuarios.png";
     TextBox10.Text  = "";
 }
    protected void Button1_Click(object sender, EventArgs e)
    {
        // usuarios
        ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
        string carga     = metodos.CargaMaestra("usuarios");
        bool   soloEnvia = metodos.yaHayUsuarios();

        //string FilePath = FileUpload1.PostedFile.FileName;
        //Label1.Text = FilePath;
    }
Exemple #6
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     // Modificar Contacto 16
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.ModificarContacto(TextBox7.Text.ToString(), TextBox8.Text.ToString(), TextBox9.Text.ToString(), TextBox10.Text.ToString(), TextBox16.Text.ToString());
     Image1.ImageUrl = "EDD\\contactos.png";
     TextBox7.Text   = "";
     TextBox8.Text   = "";
     TextBox9.Text   = "";
     TextBox10.Text  = "";
 }
Exemple #7
0
 protected void Button1_Click1(object sender, EventArgs e)
 {
     // Agregar Contacto
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.AgregarContacto(TextBox1.Text.ToString(), TextBox2.Text.ToString(), TextBox3.Text.ToString(), TextBox4.Text.ToString());
     Image1.ImageUrl = "EDD\\contactos.png";
     TextBox1.Text   = "";
     TextBox2.Text   = "";
     TextBox3.Text   = "";
     TextBox4.Text   = "";
 }
    protected void Button1_Click1(object sender, EventArgs e)
    {
        //ServiceReference1.ServiceSoapClient metodos = new ServiceReference1.ServiceSoapClient();
        ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();

        //Label1.Text = metodos.Prueba();
        //metodos.crearDot("digraph G {a->b;}", "o");
        //metodos.crearPng("o");

        //Response.Redirect("Login.aspx");
    }
 protected void Button3_Click(object sender, EventArgs e)
 {
     // Modificar jugador
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     metodos.ModificarJugadores(TextBox7.Text.ToString(), TextBox8.Text.ToString(), TextBox9.Text.ToString(), TextBox10.Text.ToString(), TextBox11.Text.ToString(), TextBox12.Text.ToString(), TextBox13.Text.ToString());
     Image1.ImageUrl = "EDD\\juegos.png";
     TextBox7.Text   = "";
     TextBox8.Text   = "";
     TextBox9.Text   = "";
     TextBox10.Text  = "";
     TextBox11.Text  = "";
     TextBox12.Text  = "";
     TextBox13.Text  = "";
 }
    protected void Button1_Click(object sender, EventArgs e)
    {
        ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();

        if (Movil.Checked) // Opcion de Movil
        {
            /*string getLine = "Christian, Ramos";
             * char[] delimitador = { ',' };
             * string[] dato = getLine.Split(delimitador);
             * TextBox1.Text = dato[0];
             * TextBox2.Text = dato[1];
             */

            Label3.Text = "Selecciono Movil<br/>SI";
        }
        else
        {
            if ((TextBox1.Text == "Admin") && (TextBox2.Text == "Admin"))
            {
                //Label3.Text = "Bienvenido Administrador";
                Response.Redirect("Administrador.aspx");
                TextBox1.Text = "";
                TextBox2.Text = "";
            }
            else
            {
                if (metodos.LoginyaHayUsuarios())
                {
                    if (metodos.refABB(TextBox1.Text, TextBox2.Text) == 1)
                    {
                        if (metodos.retornoConectadoUsuario1() == 0)
                        {
                            //Label3.Text = "Bienvenido " + TextBox1.Text;
                            metodos.asignandoNombre1(TextBox1.Text);
                            Response.Redirect("Usuarios.aspx");
                        }
                        else if (metodos.retornoConectadoUsuario1() == 1)
                        {
                            //Label3.Text = "Bienvenido " + TextBox1.Text;
                            metodos.asignandoNombre2(TextBox1.Text);
                            Response.Redirect("Usuarios2.aspx");
                        }

                        TextBox1.Text = "";
                        TextBox2.Text = "";
                    }
                    else
                    {
                        Label3.Text   = "Nickname o Password Incorrectos";
                        TextBox1.Text = "";
                        TextBox2.Text = "";
                    }
                }
                else
                {
                    Label3.Text   = "No existen Usuarios, debe Ingresar Administrador";
                    TextBox1.Text = "";
                    TextBox2.Text = "";
                }
            }
        }
    }
 protected void Button6_Click(object sender, EventArgs e)
 {
     // contactos
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     string carga = metodos.CargaMaestra("contactos");
 }
 protected void Button4_Click(object sender, EventArgs e)
 {
     // juegoActual
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     string carga = metodos.CargaMaestra("juegoActual");
 }
 protected void Button7_Click(object sender, EventArgs e)
 {
     // historial [Arbol B]
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     string carga = metodos.CargaMaestra("historial");
 }
Exemple #14
0
 protected void Button6_Click(object sender, EventArgs e)
 {
     ServiceReference1.ProyectoEDDSoapClient metodos = new ServiceReference1.ProyectoEDDSoapClient();
     Response.Redirect("Login.aspx");
 }