Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            BackEnd backEnd = new BackEnd("server=localhost;database=simon;uid=simon;pwd=simon;");

            Application.Run(new frmMenu(backEnd));
        }
Пример #2
0
 public frmJuego(int unaDificultad, BackEnd unBackEnd)
 {
     InitializeComponent();
     areaJuego = this.Size.Height - 20;
     ladoBoton = areaJuego / unaDificultad;
     generarBotones(unaDificultad);
     listaBotonesJugados = new List <int>();
     r            = new Random(DateTime.Now.Millisecond);
     nroTurno     = 0;
     backEnd      = unBackEnd;
     dificultad   = unaDificultad;
     delegadoHilo = new ThreadStart(generarYPintar);
     hilo         = new Thread(delegadoHilo);
 }
Пример #3
0
 public frmMenu(BackEnd unBackEnd)
 {
     InitializeComponent();
     backEnd = unBackEnd;
     cargarListaJugadores();
 }