예제 #1
0
 protected void botonMover_Click(object sender, EventArgs e)
 {
     if (ws.moverUnidad(textUnidad.Text, Convert.ToInt32(Convert.ToChar(moverX.Text)), Convert.ToInt32(moverY.Text), Session["nickname"].ToString()))
     {
         textConsola.Text = ws.getConsola();
         actualizarTablero();
     }
     else
     {
         textConsola.Text = textConsola.Text + Session["nickname"].ToString() + ": ERROR al mover la unidad " + textUnidad.Text + ". \n";
     }
 }