public ProductsViewModel(IProductsDialogService dialogService, IDataService <ProductModel> productDataService) { this._productDataService = productDataService; this._dialogService = dialogService; Messenger.Default.Register <OrderModel>(this, OnSelectedOrderReceived); LoadCommands(); }
public CustomerOrdersViewModel(IDataService <OrderModel> orderDataService, IEditProductDialogService editProductDialogservice, IProductsDialogService productsDialogservice, IDataService <ProductModel> productDataService) { this._orderDataService = orderDataService; this._productDataService = productDataService; this._editProductsDialogService = editProductDialogservice; this._productsDialogService = productsDialogservice; Messenger.Default.Register <CustomerModel>(this, OnUpdateOrderMessageReceived); LoadCommands(); }