FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
||||
|
||||
Por si te sirve, aquí tienes tu código, simplificado:
Código:
public static void brillo() { Console.Clear(); while(true) { Console.SetCursorPosition(0, 0); Console.Write($"Luz: {new string('X', luz)}{new string('-', BRILLO_MAX - luz)}"); switch (Console.ReadKey(true).Key) { case ConsoleKey.UpArrow: if (luz < BRILLO_MAX) luz++; break; case ConsoleKey.DownArrow: if (luz > 0) luz--; break; case ConsoleKey.Enter: return; } } }
__________________
delphi.com.ar Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Para entrar en trance... | AzidRain | La Taberna | 4 | 06-03-2009 15:26:08 |
Evento al entrar al Form | lunygar | Varios | 5 | 11-01-2008 17:54:28 |
No me deja entrar xp a pc con win98 se ! | Arturo | Windows | 0 | 15-05-2006 22:46:43 |
No me deja entrar al Interbase | nuri | Firebird e Interbase | 2 | 14-07-2005 12:58:02 |
Cómo entrar a la disco | roman | Humor | 24 | 31-05-2004 19:34:56 |
|