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