Example #1
0
        static public Ingradient[] GetAll()
        {
            return(new Ingradient[] {
                IngradientLoader.Garlic(),
                IngradientLoader.Grass(),
                IngradientLoader.Fish(),
                IngradientLoader.Sausage(),
                IngradientLoader.Tomato(),
                IngradientLoader.Onion(),
                IngradientLoader.Cucumber(),
                IngradientLoader.Flour(),
                IngradientLoader.Yeast(),
                IngradientLoader.Ketchup(),
                IngradientLoader.TomatoSauce(),
                IngradientLoader.Mayonnaise(),

                SeeFood(),

                Crab(),

                Vetcina(),

                Becon(),

                Paperoni(),

                Salami(),
                Olives(),

                Mushroom(),

                BolgarPapper(),

                Oregano(),

                Pineapple(),
                Mozzarela(),
                ItalienCheese(),
                Parmezan(),
                Spice()
            });
        }
Example #2
0
        static public void CreatePizzaFile()
        {
            Directory.CreateDirectory(pizzaFolder);

            SerializePizza("ТестоваПіца№1", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 300
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Sausage())
                {
                    MassGr = 500
                }
            },
                           1
                           );
            SerializePizza("NullPizza", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 0
                },
            },
                           1
                           );

            SerializePizza("АрМар", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Vetcina())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Becon())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Olives())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Paperoni())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Венеция", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Grass())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Vetcina())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Salami())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Becon())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.BolgarPapper())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
            },
                           5
                           );
            SerializePizza("Папперони", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Olives())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Oregano())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Paperoni())
                {
                    MassGr = 10
                }
            },
                           5
                           );
            SerializePizza("Морская", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Crab())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.SeeFood())
                {
                    MassGr = 100
                },
            },
                           5
                           );


            SerializePizza("Рико", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Pineapple())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Сырная", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.Mozzarela())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Parmezan())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Грибной люкс", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Княжеская", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.TomatoSauce())
                {
                    MassGr = 25
                },
                new Ingradient(IngradientLoader.ItalienCheese())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Spice())
                {
                    MassGr = 10
                },
                new Ingradient(IngradientLoader.Mushroom())
                {
                    MassGr = 100
                },
                new Ingradient(IngradientLoader.Tomato())
                {
                    MassGr = 100
                },
            },
                           5
                           );
            SerializePizza("Фокача", "Норм", new Ingradient[] {
                new Ingradient(IngradientLoader.Flour())
                {
                    MassGr = 500
                },
                new Ingradient(IngradientLoader.Yeast())
                {
                    MassGr = 25
                },
            },
                           5
                           );
        }