public void SaltyCat() { Console.ForegroundColor = ConsoleColor.DarkYellow; string str = @" .────────────────────────────────────────────────────────────────. | [0] Cestoviny s kuracími prsiami Alfredo | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [1] Polesníky | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [2] Kurací perkelt so smotanou a haluškami | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [3] Gyros s kuracím mäsom v tortille | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [4] Cesnaková polievka | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [5] Zemiakové pirohy s mäsovou plnkou | *────────────────────────────────────────────────────────────────*"; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button = Convert.ToChar(Console.Read()); string buttonString = button.ToString(); switch (buttonString) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť do kategorií"); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } case "0": { Console.Clear(); Recipe1 recipe1 = new Recipe1(); recipe1.Recept1(); break; } case "1": { Console.Clear(); Recipe3 recipe3 = new Recipe3(); recipe3.Recept3(); break; } case "2": { Console.Clear(); Recipe4 recipe4 = new Recipe4(); recipe4.Recept4(); break; } case "3": { Console.Clear(); Recipe6 recipe6 = new Recipe6(); recipe6.Recept6(); break; } case "4": { Console.Clear(); Recipe8 recipe8 = new Recipe8(); recipe8.Recept8(); break; } case "5": { Console.Clear(); Recipe9 recipe9 = new Recipe9(); recipe9.Recept9(); break; } default: { Console.Clear(); Salty salty = new Salty(); salty.SaltyCat(); break; } } }
public void EasyCat() { Console.ForegroundColor = ConsoleColor.DarkCyan; string str = @" .────────────────────────────────────────────────────────────────. | [0] Talianske tiramisu | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [1] Polesníky | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [2] Banánové lievance s čokoládou | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [3] Gyros s kuracím mäsom v tortille | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [4] Čokoládové cookies | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [5] Cesnaková polievka | *────────────────────────────────────────────────────────────────*"; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button = Convert.ToChar(Console.Read()); string buttonString = button.ToString(); switch (buttonString) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť do kategorií"); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } case "0": { Console.Clear(); Recipe0 recipe0 = new Recipe0(); recipe0.Recept0(); break; } case "1": { Console.Clear(); Recipe3 recipe3 = new Recipe3(); recipe3.Recept3(); break; } case "2": { Console.Clear(); Recipe5 recipe5 = new Recipe5(); recipe5.Recept5(); break; } case "3": { Console.Clear(); Recipe6 recipe6 = new Recipe6(); recipe6.Recept6(); break; } case "4": { Console.Clear(); Recipe7 recipe7 = new Recipe7(); recipe7.Recept7(); break; } case "5": { Console.Clear(); Recipe8 recipe8 = new Recipe8(); recipe8.Recept8(); break; } default: { Console.Clear(); Easy easy = new Easy(); easy.EasyCat(); break; } } }
public void SweetCat() { Console.ForegroundColor = ConsoleColor.DarkYellow; string str = @" .────────────────────────────────────────────────────────────────. | [T] Talianske tiramisu | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [K] Karamelový cheesecake s čokoládou | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [B] Banánové lievance s čokoládou | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [C] Čokoládové cookies | *────────────────────────────────────────────────────────────────*"; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button1 = Convert.ToChar(Console.Read()); string buttonString1 = button1.ToString(); switch (buttonString1) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť do kategorií"); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } case "t": case "T": { Console.Clear(); Recipe0 recipe0 = new Recipe0(); recipe0.Recept0(); break; } case "k": case "K": { Console.Clear(); Recipe2 recipe2 = new Recipe2(); recipe2.Recept2(); break; } case "b": case "B": { Console.Clear(); Recipe5 recipe5 = new Recipe5(); recipe5.Recept5(); break; } case "c": case "C": { Console.Clear(); Recipe7 recipe7 = new Recipe7(); recipe7.Recept7(); break; } default: { Console.Clear(); Sweet sweet = new Sweet(); sweet.SweetCat(); break; } } }
public void MediumCat() { string str = @" .────────────────────────────────────────────────────────────────. | [0] Cestoviny s kuracími prsiami Alfredo | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [1] Karamelový cheesecake s čokoládou | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [2] Kurací perkelt so smotanou a haluškami | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [3] Zemiakové pirohy s mäsovou plnkou | *────────────────────────────────────────────────────────────────*"; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button1 = Convert.ToChar(Console.Read()); string buttonString1 = button1.ToString(); switch (buttonString1) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť do kategorií"); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } case "0": { Console.Clear(); Recipe1 recipe1 = new Recipe1(); recipe1.Recept1(); break; } case "1": { Console.Clear(); Recipe2 recipe2 = new Recipe2(); recipe2.Recept2(); break; } case "2": { Console.Clear(); Recipe4 recipe4 = new Recipe4(); recipe4.Recept4(); break; } case "3": { Console.Clear(); Recipe9 recipe9 = new Recipe9(); recipe9.Recept9(); break; } default: { Console.Clear(); Medium medium = new Medium(); medium.MediumCat(); break; } } }
public void SearchCat() { Console.ForegroundColor = ConsoleColor.DarkCyan; string str = @" _ _ __ _ // _ | |/ /__ _| |_ ___ __ _ ___ _ __(_) ___ | ' // _` | __/ _ \/ _` |/ _ \| '__| |/ _ \ | . \ (_| | || __/ (_| | (_) | | | | __/ |_|\_\__,_|\__\___|\__, |\___/|_| |_|\___| |___/ "; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkYellow; string cat = @" .────────────────────────────────────────────────────────────────. | [0] SLADKÉ RECEPTY | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [1] SLANÉ RECEPTY | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [2] NÍZKA NÁROČNOSŤ | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [3] STREDNÁ NÁROČNOSŤ | *────────────────────────────────────────────────────────────────*"; Console.WriteLine(cat); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ NA VŠETKY KATEGÓRIE | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button = Convert.ToChar(Console.Read()); string buttonString = button.ToString(); switch (buttonString) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť na vyhľadávanie"); Find findr = new Find(); findr.FindRecipe(); break; } case "0": { Console.Clear(); Sweet sweet = new Sweet(); sweet.SweetCat(); break; } case "1": { Console.Clear(); Salty salty = new Salty(); salty.SaltyCat(); break; } case "2": { Easy easy = new Easy(); easy.EasyCat(); break; } case "3": { Console.Clear(); Medium medium = new Medium(); medium.MediumCat(); break; } default: { Console.Clear(); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } } }
public void FindRecipe() { Console.ForegroundColor = ConsoleColor.DarkYellow; string str = @" .────────────────────────────────────────────────────────────────. | [N] NÁJSŤ RECEPT PODĽA NÁZVU | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [K] NÁJSŤ RECEPT PODĽA KATEGÓRIE | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [A] NÁJSŤ RECEPT PODĽA AUTORA | *────────────────────────────────────────────────────────────────* .────────────────────────────────────────────────────────────────. | [D] NÁJSŤ RECEPT PODĽA DÁTUMU PRIDANIA | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(str); Console.ForegroundColor = ConsoleColor.DarkRed; string s = @" .────────────────────────────────────────────────────────────────. | [S] SPÄŤ DO MENU | *────────────────────────────────────────────────────────────────* "; Console.WriteLine(s); Console.ReadLine(); char button1 = Convert.ToChar(Console.Read()); string buttonString1 = button1.ToString(); switch (buttonString1) { case "s": case "S": { Console.Clear(); Console.WriteLine("Späť do menu"); Menu hlavna = new Menu(); hlavna.DesignMenu(); break; } case "n": case "N": { Console.Clear(); ByName byName = new ByName(); byName.SearchName(); break; } case "k": case "K": { Console.Clear(); ByCategory byCategory = new ByCategory(); byCategory.SearchCat(); break; } case "a": case "A": { Console.Clear(); ByAuthor byAuthor = new ByAuthor(); byAuthor.SearchAut(); break; } case "d": case "D": { Console.Clear(); ByDate byDate = new ByDate(); byDate.SearchDate(); break; } default: { Console.Clear(); Find findr = new Find(); findr.FindRecipe(); break; } } }