コード例 #1
0
        public void Viktoria()
        {
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            string str = @"
                             .────────────────────────────────────────────────────────────────.
                             |           [0]  Cestoviny s kuracími prsiami Alfredo            |
                             *────────────────────────────────────────────────────────────────* 

                             .────────────────────────────────────────────────────────────────.
                             |           [1]  Gyros s kuracím mäsom v tortille                |
                             *────────────────────────────────────────────────────────────────*";

            Console.WriteLine(str);

            Console.ForegroundColor = ConsoleColor.DarkRed;
            string s = @"

                             .────────────────────────────────────────────────────────────────.
                             |                           [S]  SPÄŤ                            |
                             *────────────────────────────────────────────────────────────────* ";

            Console.WriteLine(s);

            char   button1       = Convert.ToChar(Console.Read());
            string buttonString1 = button1.ToString();

            switch (buttonString1)
            {
            case "s":
            case "S":
            {
                Console.Clear();
                Console.WriteLine("Späť");
                ByAuthor byAuthor = new ByAuthor();
                byAuthor.SearchAut();


                break;
            }

            case "0":
            {
                Console.Clear();
                Recipe1 recipe1 = new Recipe1();
                recipe1.Recept1();

                break;
            }


            case "1":
            {
                Console.Clear();
                Recipe6 recipe6 = new Recipe6();
                recipe6.Recept6();

                break;
            }

            default:
            {
                Console.Clear();
                Author5 author = new Author5();
                author.Viktoria();

                break;
            }
            }
        }
コード例 #2
0
        public void ReceptyBabky()
        {
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            string str = @"
                             .────────────────────────────────────────────────────────────────.
                             |               [0]  Polesníky                                   |
                             *────────────────────────────────────────────────────────────────* 


                             .────────────────────────────────────────────────────────────────.
                             |               [1]  Cesnaková polievka                          |
                             *────────────────────────────────────────────────────────────────*


                             .────────────────────────────────────────────────────────────────.
                             |               [2]  Zemiakové pirohy s mäsovou plnkou           |
                             *────────────────────────────────────────────────────────────────*";

            Console.WriteLine(str);

            Console.ForegroundColor = ConsoleColor.DarkRed;
            string s = @"

                             .────────────────────────────────────────────────────────────────.
                             |                           [S]  SPÄŤ                            |
                             *────────────────────────────────────────────────────────────────* ";

            Console.WriteLine(s);


            char   button1       = Convert.ToChar(Console.Read());
            string buttonString1 = button1.ToString();

            switch (buttonString1)
            {
            case "s":
            case "S":
            {
                Console.Clear();
                Console.WriteLine("Späť");
                ByAuthor byAuthor = new ByAuthor();
                byAuthor.SearchAut();


                break;
            }

            case "0":
            {
                Console.Clear();
                Recipe3 recipe3 = new Recipe3();
                recipe3.Recept3();

                break;
            }


            case "1":
            {
                Console.Clear();
                Recipe8 recipe8 = new Recipe8();
                recipe8.Recept8();

                break;
            }


            case "2":
            {
                Console.Clear();
                Recipe9 recipe9 = new Recipe9();
                recipe9.Recept9();

                break;
            }

            default:
            {
                Console.Clear();
                Author4 author = new Author4();
                author.ReceptyBabky();

                break;
            }
            }
        }
コード例 #3
0
        public void SearchAut()
        {
            string name = @"
                            ZORADENÉ MENÁ AUTOROV  A-Z        
                           ------------------------------";

            Console.WriteLine(name);

            Console.ForegroundColor = ConsoleColor.DarkCyan;
            string str = @"
                             .────────────────────────────────────────────────────────────────.
                             |                   [0]  Karin - Live to bake                    |
                             *────────────────────────────────────────────────────────────────* 
          

                             .────────────────────────────────────────────────────────────────.
                             |                   [1]  Marcel Ihnačák                          |
                             *────────────────────────────────────────────────────────────────*                         
                              

                             .────────────────────────────────────────────────────────────────.
                             |                   [2]  Nigella Lawson                          |
                             *────────────────────────────────────────────────────────────────* 


                             .────────────────────────────────────────────────────────────────.
                             |                   [3]  Petra Eliašová                          |
                             *────────────────────────────────────────────────────────────────* 


                             .────────────────────────────────────────────────────────────────.
                             |                   [4]  Recept starej mamy                      |
                             *────────────────────────────────────────────────────────────────*


                             .────────────────────────────────────────────────────────────────.
                             |                   [5]  Viktoria                                |
                             *────────────────────────────────────────────────────────────────*";

            Console.WriteLine(str);

            Console.ForegroundColor = ConsoleColor.DarkRed;
            string s = @"
                             .────────────────────────────────────────────────────────────────.
                             |                         [S]  SPÄŤ                              |
                             *────────────────────────────────────────────────────────────────* ";

            Console.WriteLine(s);

            char   button       = Convert.ToChar(Console.Read());
            string buttonString = button.ToString();

            switch (buttonString)
            {
            case "s":
            case "S":
            {
                Console.Clear();
                Console.WriteLine("Späť do vyhľadávania");
                Find find = new Find();
                find.FindRecipe();

                break;
            }

            case "0":
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                string s2 = @"
                             .────────────────────────────────────────────────────────────────.
                             |            [0]  Karamelový cheesecake s čokoládou              |
                             *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s2);

                Console.ForegroundColor = ConsoleColor.DarkRed;
                string s1 = @"

                            .────────────────────────────────────────────────────────────────.
                            |                           [S]  SPÄŤ                            |
                            *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s1);
                Console.ReadLine();

                char   button1       = Convert.ToChar(Console.Read());
                string buttonString1 = button1.ToString();
                if (buttonString1 == "0")
                {
                    Console.Clear();
                    Recipe2 recipe2 = new Recipe2();
                    recipe2.Recept2();
                }
                else if (buttonString1 == "s")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }
                else if (buttonString1 == "S")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }

                break;
            }


            case "1":
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.Clear();
                string s2 = @"
                             .────────────────────────────────────────────────────────────────.
                             |            [0]  Kurací perkelt so smotanou a haluškami         |
                             *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s2);

                Console.ForegroundColor = ConsoleColor.DarkRed;
                string s1 = @"

                            .────────────────────────────────────────────────────────────────.
                            |                           [S]  SPÄŤ                            |
                            *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s1);
                Console.ReadLine();

                char   button1       = Convert.ToChar(Console.Read());
                string buttonString1 = button1.ToString();
                if (buttonString1 == "0")
                {
                    Console.Clear();
                    Recipe4 recipe4 = new Recipe4();
                    recipe4.Recept4();
                }
                else if (buttonString1 == "s")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }
                else if (buttonString1 == "S")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }

                break;
            }


            case "2":
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.Clear();
                string s2 = @"
                             .────────────────────────────────────────────────────────────────.
                             |                [0]   Čokoládové cookies                        |
                             *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s2);

                Console.ForegroundColor = ConsoleColor.DarkRed;
                string s1 = @"

                            .────────────────────────────────────────────────────────────────.
                            |                           [S]  SPÄŤ                            |
                            *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s1);

                Console.ReadLine();

                char   button1       = Convert.ToChar(Console.Read());
                string buttonString1 = button1.ToString();
                if (buttonString1 == "0")
                {
                    Console.Clear();
                    Recipe7 recipe7 = new Recipe7();
                    recipe7.Recept7();
                }
                else if (buttonString1 == "s")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }
                else if (buttonString1 == "S")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }

                break;
            }


            case "3":
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.DarkYellow;
                Console.Clear();
                string s2 = @"
                             .────────────────────────────────────────────────────────────────.
                             |                  [0]  Talianske tiramisu                       |
                             *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s2);

                Console.ForegroundColor = ConsoleColor.DarkRed;
                string s1 = @"

                            .────────────────────────────────────────────────────────────────.
                            |                           [S]  SPÄŤ                            |
                            *────────────────────────────────────────────────────────────────* ";
                Console.WriteLine(s1);
                Console.ReadLine();

                char   button1       = Convert.ToChar(Console.Read());
                string buttonString1 = button1.ToString();
                if (buttonString1 == "0")
                {
                    Console.Clear();
                    Recipe0 recipe0 = new Recipe0();
                    recipe0.Recept0();
                }
                else if (buttonString1 == "s")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }
                else if (buttonString1 == "S")
                {
                    Console.Clear();
                    ByAuthor by = new ByAuthor();
                    by.SearchAut();
                }

                break;
            }


            case "4":
            {
                Console.Clear();
                Author4 author4 = new Author4();
                author4.ReceptyBabky();

                break;
            }


            case "5":
            {
                Author5 author5 = new Author5();
                author5.Viktoria();

                break;
            }

            default:
            {
                Console.Clear();
                ByAuthor byAuthor = new ByAuthor();
                byAuthor.SearchAut();

                break;
            }
            }
        }
コード例 #4
0
ファイル: Find.cs プロジェクト: TatianaM38/Recipe-book
        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;
            }
            }
        }