Beispiel #1
0
 public Dish(string name, float price, int time, Quisine quisine, params string[] ingredients)
 {
     this.name         = name;
     this.price        = price;
     this.ingredients  = ingredients;
     this.time         = time;
     this.time_cooking = time;
     this.quisine      = quisine;
     this.quisineName  = quisine.GetName();
     this.quisine.AddDish(this);
 }
Beispiel #2
0
 public string GetQuisineName()
 {
     this.quisineName = quisine.GetName();
     return(this.quisineName);
 }
Beispiel #3
0
 public void SetQuisine(Quisine quisine)
 {
     this.quisine     = quisine;
     this.quisineName = quisine.GetName();
 }