|
@@ -28,6 +28,7 @@ namespace OOO_WriteAndClear.MVP.Views
|
|
|
{
|
|
|
_presenter = new OrderCartWindowPresenter(this);
|
|
|
InitializeComponent();
|
|
|
+ LoadPickupPoints();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -36,6 +37,7 @@ namespace OOO_WriteAndClear.MVP.Views
|
|
|
_presenter = new OrderCartWindowPresenter(this);
|
|
|
InitializeComponent();
|
|
|
SetCurrentOrderFormerer(orderFormerer);
|
|
|
+ LoadPickupPoints();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -159,5 +161,18 @@ namespace OOO_WriteAndClear.MVP.Views
|
|
|
|
|
|
private void SetCurrentOrderFormerer(OrderFormerer orderFormerer)
|
|
|
=> _presenter.SetCurrentOrderFormerer(orderFormerer);
|
|
|
+
|
|
|
+ private void LoadPickupPoints()
|
|
|
+ {
|
|
|
+ ICollection<PickupPoint> pickupPoints;
|
|
|
+ Task.Run(() =>
|
|
|
+ {
|
|
|
+ pickupPoints = _presenter.GetAllPickupPoints();
|
|
|
+ Dispatcher.BeginInvoke(new Action(() =>
|
|
|
+ {
|
|
|
+ PickupPointComboBox.ItemsSource = pickupPoints;
|
|
|
+ }));
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|