public void Update(TextBox T, ListBox L)
        {
            this.gramsoffat     = bread.GramsOfFat() + bp.GramsOfFat;
            this.gramsofprotein = bread.GramsOfProtein() + bp.GramsOfProteins;
            this.gramsofsugar   = bread.GramsOfSugar() + bp.GramsOfSugar;

            foreach (Condiments condiment in conds)
            {
                this.gramsofprotein = gramsofprotein + condiment.GetGramsOfProtein();
                this.gramsoffat     = gramsoffat + condiment.GetGramsOfFat();
                this.gramsofsugar   = gramsofsugar + condiment.GetGramsOfSugar();
            }
            this.calories = CalCalc.Calories(gramsofprotein, gramsoffat, gramsofsugar);
            T.Text        = this.calories.ToString();
        }
        public void Update(TextBox T, ListBox L)
        {
            this.gramsoffat     = dough.GetGramsOfFat() + sauce.GetGramsOfFat();
            this.gramsofprotein = dough.GetGramsOfProtein() + sauce.GetGramsOfProtein();
            this.gramsofsugar   = dough.GetGramsOfSugar() + sauce.GetGramsOfSugar();

            foreach (Condiments condiment in conds)
            {
                Console.WriteLine(condiment);
                this.gramsofprotein = gramsofprotein + condiment.GetGramsOfProtein();
                this.gramsoffat     = gramsoffat + condiment.GetGramsOfFat();
                this.gramsofsugar   = gramsofsugar + condiment.GetGramsOfSugar();
            }
            this.calories = CalCalc.Calories(gramsofprotein, gramsoffat, gramsofsugar);
            T.Text        = this.calories.ToString();
        }
 public override int GetCalories()
 {
     return(CalCalc.Calories(GetGramsOfProtein(), GetGramsOfFat(), GetGramsOfSugar()));
 }
 public Burgerbread()
 {
     calories = CalCalc.Calories(GramsOfProtein(), GramsOfFat(), GramsOfSugar());
 }
 public Beefpatty()
 {
     calories = CalCalc.Calories(gramsOfProteins, gramsOfFat, gramsOfSugar);
 }
Exemplo n.º 6
0
 public Sausage()
 {
     calories = CalCalc.Calories(GramsOfProteins, GramsOfFat, GramsOfSugar);
 }
Exemplo n.º 7
0
 public int GetCalories()
 {
     return(CalCalc.Calories(fat, protein, sugar));
 }
Exemplo n.º 8
0
 public Hotdogbread()
 {
     calories = CalCalc.Calories(GramsOfProtein(), GramsOfFat(), GramsOfSugar());
 }
 private int calories()
 {
     return(CalCalc.Calories(this.gramsofprotein, this.gramsoffat, this.gramsofsugar));
 }