public void Print() { AbstractFactory factoryDict = ProductFactory.GetFactory("FactoryDict"); IResponseDict response = factoryDict.GetRespDict("ResponseSpecialKey"); PrintDetails(response.GetResponse(), ConsoleColor.Green); }
public void Print() { AbstractFactory factoryDict = ProductFactory.GetFactory("FactoryDict"); IResponseDict response = factoryDict.GetRespDict("ResponseFunctionalKey"); PrintKeys(response.GetResponse(), ConsoleColor.Blue); }
internal static void Print(string inputKey) { if (respDictNormal.GetResponse().ContainsKey(inputKey.ToLower())) { Console.WriteLine(inputKey.ToLower()); ClientSocket.SendRequest(inputKey.ToLower()); } else if (respDictSpecial.GetResponse().ContainsKey(inputKey)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(inputKey.ToLower()); ClientSocket.SendRequest(inputKey.ToLower()); } else if (respDictFunctional.GetResponse().ContainsKey(inputKey)) { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine(inputKey); ClientSocket.SendRequest(inputKey); } System.Threading.Thread.Sleep(2000); }
internal static void Print(string modifier, string key) { if (respDictSpecial.GetResponse().ContainsKey(modifier) && respDictNormal.GetResponse().ContainsKey(key)) { if (!respListCombined.GetResponse().Contains($"{ modifier }+{ key }")) { Console.ForegroundColor = ConsoleColor.Green; Console.Write(modifier); Console.ResetColor(); Console.Write($"+{ key }"); ClientSocket.SendRequest($"{modifier}+{key}"); } else { Console.ForegroundColor = ConsoleColor.Red; Console.Write($"{ modifier }+{ key }"); ClientSocket.SendRequest($"{modifier}+{key}"); } } else { Console.WriteLine("Key not exist"); } }