Exemple #1
0
        public bool Sozdat()
        {
            Itogo = 0;
            foreach (ZakazannoeBlyudo MAX1 in MAX)
            {
                Itogo = MAX1.bludo.Prise * MAX1.Kolichestvo + Itogo;
            }

            Time = 0;
            foreach (ZakazannoeBlyudo MAX1 in MAX)
            {
                if (MAX1.bludo.Time > Time)
                {
                    Time = MAX1.bludo.Time;
                }
            }
            ZakazDannie aaa1 = new ZakazDannie();

            aaa1.SpisokBlyud = MAX;
            aaa1.Summa       = Itogo;
            aaa1.Time        = Time;
            MAX2.Add(aaa1);
            MAX = new List <ZakazannoeBlyudo>();
            return(true);
        }
        public bool Sozdat()
        {
            Itogo = 0;
            foreach (ZakazannoeBlyudo AYF1 in AYF)
            {
                Itogo = AYF1.bludo.Prise * AYF1.Kolichestvo + Itogo;
            }

            Time = 0;
            foreach (ZakazannoeBlyudo AYF1 in AYF)
            {
                if (AYF1.bludo.Time > Time)
                {
                    Time = AYF1.bludo.Time;
                }
            }
            ZakazDannie aaa1 = new ZakazDannie();

            aaa1.SpisokBlyud = AYF;
            aaa1.Summa       = Itogo;
            aaa1.Time        = Time;
            AYF2.Add(aaa1);
            AYF = new List <ZakazannoeBlyudo>();
            return(true);
        }