예제 #1
0
파일: PayViewModel.cs 프로젝트: edjo23/shop
 public PayViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
 {
     EventAggregator = eventAggregator;
     ScreenCoordinator = screenCoordinator;
     CustomerService = customerService;
     DisplayName = "PAYMENT";
     PaymentItems = new BindableCollection<PayItemViewModel>();
 }
예제 #2
0
 public LoanViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
 {
     EventAggregator = eventAggregator;
     ScreenCoordinator = screenCoordinator;
     CustomerService = customerService;
     DisplayName = "LOAN";
     LoanItems = new BindableCollection<LoanItemViewModel>();
 }
예제 #3
0
        public ProcessViewModel(ScreenCoordinator screenCoordinator)
        {
            ScreenCoordinator = screenCoordinator;
            Logger = log4net.LogManager.GetLogger(GetType());

            ProcessAction = () => { };
            CompleteAction = () => { };
            ErrorAction = ex => { ScreenCoordinator.HandleFault(ex); };
        }
예제 #4
0
        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>();
        }
예제 #5
0
        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>();
        }