示例#1
0
 public void AddMenu(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders)
 {
     MenuItem newMenuItem = new MenuItem(timeOfDay, dishType, allowMultipleOrders);
     menuItems.Add(newMenuItem);
 }
示例#2
0
 public MenuItem(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders)
 {
     this.timeOfDay           = timeOfDay;
     this.dishType            = dishType;
     this.allowMultipleOrders = allowMultipleOrders;
 }
示例#3
0
        public void AddMenu(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders)
        {
            MenuItem newMenuItem = new MenuItem(timeOfDay, dishType, allowMultipleOrders);

            menuItems.Add(newMenuItem);
        }
 public MenuItem(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders)
 {
     this.timeOfDay = timeOfDay;
     this.dishType = dishType;
     this.allowMultipleOrders = allowMultipleOrders;
 }