From f6b11f4975815172b8ccdc9bd9b2ccd18f6bb719 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Fri, 26 Aug 2016 09:38:41 -0400 Subject: [PATCH] added a quit key to the trade menu --- Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 544c4db..fd03a31 100644 --- a/Program.cs +++ b/Program.cs @@ -378,7 +378,7 @@ public static class Program Console.ResetColor(); Console.WriteLine($"Trade confirmations for {account.AccountName}..."); Console.WriteLine("No action will be made without your confirmation."); - Console.WriteLine("[a]ccept [d]eny [i]gnore [enter] Confirm"); // accept = 1, deny = 0, ignore = -1 + Console.WriteLine("[a]ccept [d]eny [i]gnore [enter] Confirm [q]uit"); // accept = 1, deny = 0, ignore = -1 Console.WriteLine(); for (var t = 0; t < trades.Length; t++) @@ -432,6 +432,10 @@ public static class Program case ConsoleKey.I: tradeActions[selected] = TradeAction.Ignore; break; + case ConsoleKey.Escape: + case ConsoleKey.Q: + Console.WriteLine("Quitting..."); + return; default: break; }