示例#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);
 }
示例#2
0
 public string GetQuisineName()
 {
     this.quisineName = quisine.GetName();
     return(this.quisineName);
 }
示例#3
0
 public void SetQuisine(Quisine quisine)
 {
     this.quisine     = quisine;
     this.quisineName = quisine.GetName();
 }