Exemplo n.º 1
0
 public PinEntryViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService, CardService cardService)
 {
     EventAggregator   = eventAggregator;
     ScreenCoordinator = screenCoordinator;
     CustomerService   = customerService;
     CardService       = cardService;
 }
Exemplo n.º 2
0
        public CashHomeViewModel(ScreenCoordinator screenCoordinator, IApplicationService applicationService)
        {
            ScreenCoordinator  = screenCoordinator;
            ApplicationService = applicationService;

            Text = new BindableCollection <string>();
        }
Exemplo n.º 3
0
 public PayViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
 {
     EventAggregator   = eventAggregator;
     ScreenCoordinator = screenCoordinator;
     CustomerService   = customerService;
     DisplayName       = "PAYMENT";
     PaymentItems      = new BindableCollection <PayItemViewModel>();
 }
Exemplo n.º 4
0
 public LoanViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
 {
     EventAggregator   = eventAggregator;
     ScreenCoordinator = screenCoordinator;
     CustomerService   = customerService;
     DisplayName       = "LOAN";
     LoanItems         = new BindableCollection <LoanItemViewModel>();
 }
Exemplo n.º 5
0
        public AccountsViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
        {
            EventAggregator   = eventAggregator;
            ScreenCoordinator = screenCoordinator;
            CustomerService   = customerService;

            Logger   = log4net.LogManager.GetLogger(GetType());
            Accounts = new BindableCollection <HomeItemViewModel>();
        }
Exemplo n.º 6
0
        public ProcessViewModel(ScreenCoordinator screenCoordinator)
        {
            ScreenCoordinator = screenCoordinator;
            Logger            = log4net.LogManager.GetLogger(GetType());

            ProcessAction  = () => { };
            CompleteAction = () => { };
            ErrorAction    = ex => { ScreenCoordinator.HandleFault(ex); };
        }
Exemplo n.º 7
0
 public LoanViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ImageService imageService, IApplicationService applicationService, ICustomerService customerService)
 {
     EventAggregator    = eventAggregator;
     ScreenCoordinator  = screenCoordinator;
     ImageService       = imageService;
     ApplicationService = applicationService;
     CustomerService    = customerService;
     DisplayName        = "LOAN";
     LoanItems          = new BindableCollection <TransactionItemViewModel>();
 }
Exemplo n.º 8
0
        public AccountViewModel(ScreenCoordinator screenCoordinator, ICustomerService customerService)
        {
            ScreenCoordinator = screenCoordinator;
            CustomerService   = customerService;

            DisplayName = "ACCOUNT";

            MaximumDate = new DateTimeOffset(new DateTime(DateTimeOffset.Now.Year, DateTimeOffset.Now.Month, 1, 0, 0, 0));
            MinimumDate = new DateTimeOffset(new DateTime(2013, 07, 1, 0, 0, 0));
        }
Exemplo n.º 9
0
        public CustomerViewModel(ScreenCoordinator screenCoordinator, ImageService imageService, IApplicationService applicationService, IEventAggregator eventAggregator)
        {
            ScreenCoordinator  = screenCoordinator;
            ImageService       = imageService;
            ApplicationService = applicationService;
            EventAggregator    = eventAggregator;

            Logger = log4net.LogManager.GetLogger(GetType());

            EventAggregator.Subscribe(this);
        }
Exemplo n.º 10
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>();
        }
Exemplo n.º 11
0
        public ShellViewModel(IEventAggregator eventAggregator, IServiceClientFactory serviceClientFactory, ScreenCoordinator screenCoordinator)
        {
            EventAggregator = eventAggregator;
            ServiceClientFactory = serviceClientFactory as WindowsStoreServiceClientFactory;
            ScreenCoordinator = screenCoordinator;
            Logger = log4net.LogManager.GetLogger(GetType());

            DisplayName = "The Shop";

            EventAggregator.Subscribe(this);
        }
Exemplo n.º 12
0
        public HomeViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, CardService cardService, ICustomerService customerService)
        {
            EventAggregator   = eventAggregator;
            ScreenCoordinator = screenCoordinator;
            CardService       = cardService;
            CustomerService   = customerService;

            Options = new BindableCollection <HomeOption>();
            Logger  = log4net.LogManager.GetLogger(GetType());

            EventAggregator.Subscribe(this);
        }
Exemplo n.º 13
0
        public ReceiptViewModel(ScreenCoordinator screenCoordinator, ImageService imageService, ICustomerService customerService, IProductService productService, IInvoiceService invoiceService, IDiscountService discountService, IEventAggregator eventAggregator)
        {
            ScreenCoordinator = screenCoordinator;
            ImageService      = imageService;
            CustomerService   = customerService;
            ProductService    = productService;
            InvoiceService    = invoiceService;
            DiscountService   = discountService;
            EventAggregator   = eventAggregator;

            DisplayName = "RECEIPT";
            Products    = new BindableCollection <SaleItemViewModel>();
        }
Exemplo n.º 14
0
 public CustomerViewModel(ScreenCoordinator screenCoordinator)
 {
     ScreenCoordinator = screenCoordinator;
     Logger            = log4net.LogManager.GetLogger(GetType());
 }
Exemplo n.º 15
0
 public MenuScreen(ScreenCoordinator screenCoordinator)
 {
     this.screenCoordinator = screenCoordinator;
 }
Exemplo n.º 16
0
 public SettingsScreen(ScreenCoordinator screenCoordinator)
 {
     this.screenCoordinator = screenCoordinator;
 }
Exemplo n.º 17
0
 public PlayLevelScreen(ScreenCoordinator screenCoordinator)
 {
     this.screenCoordinator = screenCoordinator;
 }
Exemplo n.º 18
0
 public CreditsScreen(ScreenCoordinator screenCoordinator)
 {
     this.screenCoordinator = screenCoordinator;
 }