コード例 #1
0
ファイル: App.cs プロジェクト: yenici/TerrasoftGoIT
 private static void FilterProductsByKeywords(Store store)
 {
     Console.Clear();
     Console.WriteLine("\tF I L T E R   P R O D U C T S   B Y   K E Y W O R D S:");
     Console.WriteLine(new string('-', Console.WindowWidth - 1));
     string keys;
     Console.Write("Enter the keys separated by a space: ");
     keys = Console.ReadLine();
     string[] keywords = keys.Split(' ');
     Console.WriteLine("\n" + new string('-', Console.WindowWidth - 1));
     App.DisplayResults(store.FindByKeywords(keywords), 2);
 }