public SummarizeOrderForm(IPizzeriaApiClient client, AppState appState, OrderHelpers orderHelpers) { _appState = appState; _client = client; _orderHelpers = orderHelpers; _appState.DishesInOrder.CollectionChanged += OnCurrentOrderChanged; InitializeComponent(); }
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(); }
public OrdersHistoryForm(IPizzeriaApiClient client, OrderHelpers orderHelpers) { _client = client; _orderHelpers = orderHelpers; InitializeComponent(); }