Пример #1
0
        public static void Imprimir()
        {
            string auxMensaje = "";

            Console.ForegroundColor = Sello.color;

            if (Sello.TryParse(Sello.mensaje, out auxMensaje))
            {
                Console.WriteLine(auxMensaje);
            }
            Console.ForegroundColor = ConsoleColor.White;
        }
Пример #2
0
        public static void Imprimir()
        {
            bool   rta;
            string mensajeValido = "";

            rta = Sello.TryParse(Sello.mensaje, out mensajeValido);
            if (rta == true)
            {
                mensajeValido           = Sello.ArmarFormatoMensaje();
                Console.ForegroundColor = Sello.color;
                Console.WriteLine("{0}", mensajeValido);
                Console.ForegroundColor = ConsoleColor.Gray;
            }
        }
Пример #3
0
        public static void Imprimir() //muestra por pantalla el mensaje
        {
            string mensajeListo;

            //   mensaje = Sello.ArmarFormatoMensaje();
            if (Sello.TryParse(mensaje, out mensajeListo) == true)
            {
                Console.ForegroundColor = Sello.color;
                Console.WriteLine("{0}", mensajeListo);
            }
            else
            {
                Console.WriteLine("No pudo imprimirse");
            }
            // Console.WriteLine("{0}", Sello.mensaje);
            Console.ForegroundColor = ConsoleColor.Gray;
        }