Exemple #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            int  n, n2;
            bool isNumeric  = int.TryParse(txtAtacarNivel.Text, out n);
            bool isNumeric2 = int.TryParse(txtAtacarNivel2.Text, out n2);

            if (isNumeric && isNumeric2)
            {
                ServidorIPEstatica.WebService1SoapClient servidor = new ServidorIPEstatica.WebService1SoapClient();
                txtResultado0.Text = servidor.atacar(txtAtacarX.Text.Trim(), txtAtacarY.Text.Trim().ToUpper(), txtAtacarNivel.Text.Trim(), Session["Usuario"].ToString(), txtAtacarX2.Text.Trim(), txtAtacarY2.Text.Trim().ToUpper(), txtAtacarNivel2.Text.Trim());
                TextBox12.Text     = servidor.obtenerConsola();
                //txtResultado.Text = txtMoverX.Text + " " + txtMoverY.Text + " " + txtMoverNivel.Text + " " + Session["Usuario"].ToString() + " " + txtMoverX2.Text + " " + txtMoverY2.Text;
                servidor.Close();
            }
            dibujarJuego();
        }