示例#1
0
文件: Program.cs 项目: schlieter/C-
 static void Main(string[] args)
 {
     Sello.mensaje = "Hola";
     Sello.color   = ConsoleColor.DarkCyan;
     Console.WriteLine(Sello.Imprimir());
     Sello.ImprimirEnColor();
     Sello.color = ConsoleColor.Gray;
     Sello.ImprimirEnColor();
     Console.ReadKey();
 }
示例#2
0
 public static void ImprimirEnColor()
 {
     Console.ForegroundColor = Sello.color;
     Console.WriteLine(Sello.Imprimir());
 }