Esempio n. 1
0
 public AddOrder(CoffeeShop parent, Customer customer)
 {
     InitializeComponent();
     sandwichWithBacon       = new SandwichWithBacon();
     sandwichWithEggSalad    = new SandwichWithEggSalad();
     sandwichWithRoastedBeef = new SandwichWithRoastedBeef();
     coffeeShopForm          = parent;
     this.customer           = customer;
     order = new Order(customer, OrderType.PhoneOrder);
 }
Esempio n. 2
0
 public AddCustomer(CoffeeShop parent)
 {
     InitializeComponent();
     customer    = new Customer();
     this.parent = parent;
 }