static void MenuJump1() { //try //{ int key = Convert.ToInt32(Console.ReadLine()); Console.ForegroundColor = ConsoleColor.DarkGreen; if (key <= 4 && key != 0) { switch (key) { case 1: Console.WriteLine("Your mom be going to reverse the text... \n"); ReverseText r = new ReverseText(); r.Act(); break; case 2: Console.WriteLine("Your mom be going to work encrypt the numbers!"); Menu1(); break; case 3: Console.WriteLine("Your mom be going to work decrypt the numbers!"); Pause(); break; case 4: Menu(); break; } } else { Console.WriteLine("\u0007 Shit, there's no such section!"); MenuJump1(); } //} //catch (Exception mj1) //{ // Console.WriteLine("\u0007 error 001 \n enter the numbers from 1 to 3."); // Console.Read(); // StartUp(); //} }
static void JumpExit11() { //try //{ int key = Convert.ToInt32(Console.ReadLine()); Console.ForegroundColor = ConsoleColor.DarkCyan; if (key <= 4 && key != 0) { switch (key) { case 1: ReverseText r = new ReverseText(); r.Act(); break; case 2: Menu1(); break; case 3: StartUp(); break; case 0: Pause(); break; } } else { Console.WriteLine("\u0007 Shit, there's no such section!"); MenuJump0(); } //} //catch (Exception ej1) //{ // Console.WriteLine("\u0007 error 001 \n enter the numbers from 1 to 3."); // Console.Read(); // StartUp(); //} }