public bool Execute() { while (true) { VConsole.WriteLine($"{Question} (y/n)"); var response = VInput.GetArgs(); if (response.Length != 1) { YesOrNoError.Write(); continue; } if (Positive.Any(word => word == response[0])) { return(true); } if (Negative.Any(word => word == response[0])) { return(false); } YesOrNoError.Write(); } }
public override void Write() { VConsole.WriteLine($"{VColor.Gray}--------"); VConsole.WriteLine($"{Item.Color}{Item.Name.ToUpper()}{VColor.White}"); }
public static string WaitForKey() { VConsole.WriteLine("Press any key to continue..."); return(System.Console.ReadKey().ToString()); }