public PayViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService) { EventAggregator = eventAggregator; ScreenCoordinator = screenCoordinator; CustomerService = customerService; DisplayName = "PAYMENT"; PaymentItems = new BindableCollection<PayItemViewModel>(); }
public LoanViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService) { EventAggregator = eventAggregator; ScreenCoordinator = screenCoordinator; CustomerService = customerService; DisplayName = "LOAN"; LoanItems = new BindableCollection<LoanItemViewModel>(); }
public ProcessViewModel(ScreenCoordinator screenCoordinator) { ScreenCoordinator = screenCoordinator; Logger = log4net.LogManager.GetLogger(GetType()); ProcessAction = () => { }; CompleteAction = () => { }; ErrorAction = ex => { ScreenCoordinator.HandleFault(ex); }; }
public SaleViewModel(ScreenCoordinator screenCoordinator, ICustomerService customerService, IProductService productService, IInvoiceService invoiceService, IDiscountService discountService) { ScreenCoordinator = screenCoordinator; CustomerService = customerService; ProductService = productService; InvoiceService = invoiceService; DiscountService = discountService; DisplayName = "PURCHASE"; Products = new BindableCollection<SaleItemViewModel>(); }
public HomeViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService) { EventAggregator = eventAggregator; ScreenCoordinator = screenCoordinator; CustomerService = customerService; Logger = log4net.LogManager.GetLogger(GetType()); Items = new BindableCollection<string>(); Accounts = new BindableCollection<HomeItemViewModel>(); Visitors = new BindableCollection<HomeItemViewModel>(); }