public SmallDecorator(AMenu baseComponent) : base(baseComponent) { this.Price = base.GetCost(); this.UniqueId = baseComponent.GetUniqueId(); this.Items = baseComponent.Items; }
private void btnDelete_Click(object sender, RoutedEventArgs e) { AMenu selectedMenu = OrderContent.SelectedItem as AMenu; currentOrder.RemoveMenu(selectedMenu.GetUniqueId()); ReinitOrderSource(); }
public NormalDecorator(AMenu baseComponent) : base(baseComponent) { Price = base.GetCost() + 2.5f; UniqueId = baseComponent.GetUniqueId(); Items = baseComponent.Items; }