Esempio n. 1
0
 public void AddMenuItem(string Title, string Description, double price)
 {
     MenuItem item = new MenuItem();
     item.title = Title;
     item.description = Description;
     item.price = price;
     Items.Add(item);
 }
Esempio n. 2
0
 public void AddMenuItem(string Title, string Description, double Price)
 {
     MenuItem item = new MenuItem();
     item.Title = Title;
     item.Description = Description;
     item.Price = Price;
     items.Add(item);
 }
Esempio n. 3
0
        public void addToMenu(string title, string description, double price)
        {
            MenuItem newItem = new MenuItem();
            newItem.setTitle(title);
            newItem.setDescription(description);
            newItem.setPrice(price);

            Items.Add(newItem);
        }