示例#1
0
        static void RealizarConexion()
        {
            EstadoConexion msg;

            if (ConectarZServer())   // RecibirEstado(EstadoConexion
            {
                msg = new EstadoConexion(true);
            }
            else
            {
                msg = new EstadoConexion(false);
            }

            MessageBus.Send(msg);
        }
示例#2
0
 public void RecibirEstado(EstadoConexion req)
 {
     this.checkBox1.Checked = req.Conectado;
 }