Beispiel #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);
 }
 public AddCustomer(CoffeeShop parent)
 {
     InitializeComponent();
     customer    = new Customer();
     this.parent = parent;
 }