예제 #1
0
        static void Main(string[] args)
        {
            int i;

            Comparadora.MostrarEldelMedio(44, 84, 55);
            Sello.mensaje = "HOLA MUNDO";
            Console.WriteLine(Sello.Imprimir());
            Console.ReadLine();
            Sello.Borrar();
            Console.WriteLine(Sello.Imprimir());
            Console.ReadLine();
            Sello.mensaje = "COLOR";
            Sello.color   = ConsoleColor.Red;
            Sello.ImprimirEnColor();
            Console.ReadLine();
        }
예제 #2
0
 public static void ImprimirEnColor()
 {
     Console.ForegroundColor = Sello.color;
     Console.WriteLine(Sello.Imprimir());
     Console.ForegroundColor = ConsoleColor.Gray;
 }