Пример #1
0
 /// <summary>
 /// Private fields
 /// </summary>
 public OrderDetailsViewModel(IEventAggregator events, IMapper mapper, IWareHouseData wareHouseData, IOrdersData ordersData)
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
     _events        = events;
     _wareHouseData = wareHouseData;
     _ordersData    = ordersData;
     _mapper        = mapper;
     _events.Subscribe(this);
 }
Пример #2
0
 /// <summary>
 /// Private fields
 /// </summary>
 public MakeToBuyViewModel(IEventAggregator events, IMapper mapper, IClientsData clientsData, IWareHouseData wareHouseData)
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
     _events        = events;
     _wareHouseData = wareHouseData;
     _mapper        = mapper;
     _clientsData   = clientsData;
     _events.Subscribe(this);
     RefreshSums();
 }
 public AddProductToWareHouseViewModel(IMapper mapper, IWareHouseData wareHouseData, IEventAggregator events,
                                       IWindowManager windowManager, MakeToBuyViewModel makeToBuyViewModel)
 {
     _mapper = mapper;
     _events = events;
     _events.Subscribe(this);
     _windowManager      = windowManager;
     _makeToBuyViewModel = makeToBuyViewModel;
     _wareHouseData      = wareHouseData;
     LoadPlaceholder();
 }
Пример #4
0
 public ToBuyViewModel(IMapper mapper, IWindowManager windowManager, IEventAggregator events,
                       IWareHouseData wareHouseData, IClientsData clientsData, IOrdersData ordersData)
 {
     _mapper        = mapper;
     _ordersData    = ordersData;
     _clientsData   = clientsData;
     _windowManager = windowManager;
     _wareHouseData = wareHouseData;
     _events        = events;
     _events.Subscribe(this);
     LoadClients();
 }
 public WareHauseViewModel(IMapper mapper, IEventAggregator events, MakeOrderViewModel makeOrderView,
                           IWindowManager windowManager, IWareHouseData wareHouseData)
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
     _mapper        = mapper;
     _wareHouseData = wareHouseData;
     _events        = events;
     _events.Subscribe(this);
     _windowManager  = windowManager;
     _makeOrdersView = makeOrderView;
     modelSums       = LoadProducts();
     SumOfNetPrices  = "Сума цін купівлі: " + modelSums?.NetPrice.ToString("c");
     SumOfSellPrices = "Сума цін продажу: " + modelSums?.SellPrice.ToString("c");
 }