Example #1
0
        public static Raya getInstancia()
        {
            if (Instancia == null)
            {
                Instancia = new Raya();
            }

            return(Instancia);
        }
Example #2
0
        private void pb01_Click(object sender, EventArgs e)
        {
            String respuesta = Raya.getInstancia().marcar(0, 1, lblTurno.Text[0]);

            if (lblTurno.Text == "x")
            {
                pb01.Image = new System.Drawing.Bitmap(rutax);
            }
            else
            {
                pb01.Image = new System.Drawing.Bitmap(rutaO);
            }
            AnalizaMensage(respuesta);
        }
Example #3
0
        private void pb02_Click(object sender, EventArgs e)
        {
            String respuesta = Raya.getInstancia().marcar(0, 2, lblTurno.Text[0]);

            if (lblTurno.Text == "x")
            {
                pb02.Image = new System.Drawing.Bitmap("D:\\X.png");
            }
            else
            {
                pb02.Image = new System.Drawing.Bitmap("D:\\o.jpg");
            }
            AnalizaResp(respuesta);
        }
Example #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Raya.getInstancia().Reiniciar();
     pb00.Image    = null;
     pb01.Image    = null;
     pb02.Image    = null;
     pb10.Image    = null;
     pb11.Image    = null;
     pb12.Image    = null;
     pb20.Image    = null;
     pb21.Image    = null;
     pb22.Image    = null;
     lblTurno.Text = "x";
 }