public void RunFullVersion() { MatrixColumns matrixBlocks = new MatrixColumns(); MatrixRain matrixRain = new MatrixRain(); MatrixQuotes matrixSpeech = new MatrixQuotes(); KeyboardHandler matrixKeyboard = new KeyboardHandler(); while (true) { if (SkipIntro) { matrixRain.RunMatrixRain(); matrixSpeech.ShowRandomQuote(); matrixKeyboard.WaitPressedKey(); } else { matrixSpeech.ShowIntroQuote(3); matrixBlocks.RunDigitalColumns(); matrixBlocks.RunSymbolColumns(); matrixBlocks.ShowTextAscii(TextASCII); SkipIntro = true; } } }
public void RunMatrixRain() { MatrixRain matrixRain = new MatrixRain(); KeyboardHandler matrixKeyboard = new KeyboardHandler(); while (true) { matrixRain.RunMatrixRain(); matrixKeyboard.WaitPressedKey(); } }
public static void Main() { IMatrix matrix = null; int selectedItem = 0; Console.CursorVisible = false; #if TEST selectedItem = printMenu(); #else selectedItem = 3; #endif //while (true) { switch (selectedItem) { case 1: matrix = new ConsoleMatrix(); break; case 2: matrix = new MatrixRain(); break; case 3: matrix = new CharRain(); break; } matrix.run(matrix.GetType().Name); Console.ReadKey(); //selectedItem = printMenu(); //} }