示例#1
0
 public SummarizeOrderForm(IPizzeriaApiClient client, AppState appState, OrderHelpers orderHelpers)
 {
     _appState     = appState;
     _client       = client;
     _orderHelpers = orderHelpers;
     _appState.DishesInOrder.CollectionChanged += OnCurrentOrderChanged;
     InitializeComponent();
 }
示例#2
0
 public MainForm(IPizzeriaApiClient client, AppState appState, OrderHelpers orderHelpers)
 {
     _appState               = appState;
     _client                 = client;
     _orderHelpers           = orderHelpers;
     _appState.Menu          = client.GetMenu();
     _appState.DishesInOrder = new ObservableCollection <DishOrder>();
     _appState.DishesInOrder.CollectionChanged += OnCurrentOrderChanged;
     InitializeComponent();
 }
示例#3
0
 public OrdersHistoryForm(IPizzeriaApiClient client, OrderHelpers orderHelpers)
 {
     _client       = client;
     _orderHelpers = orderHelpers;
     InitializeComponent();
 }