示例#1
0
        public CashHomeViewModel(ScreenCoordinator screenCoordinator, IApplicationService applicationService)
        {
            ScreenCoordinator = screenCoordinator;
            ApplicationService = applicationService;

            Text = new BindableCollection<string>();
        }
示例#2
0
        public ProcessViewModel(ScreenCoordinator screenCoordinator)
        {
            ScreenCoordinator = screenCoordinator;
            Logger = log4net.LogManager.GetLogger(GetType());

            ProcessAction = () => { };
            CompleteAction = () => { };
            ErrorAction = ex => { ScreenCoordinator.HandleFault(ex); };
        }
示例#3
0
        public AccountsViewModel(IEventAggregator eventAggregator, ScreenCoordinator screenCoordinator, ICustomerService customerService)
        {
            EventAggregator = eventAggregator;
            ScreenCoordinator = screenCoordinator;
            CustomerService = customerService;

            Logger = log4net.LogManager.GetLogger(GetType());
            Accounts = new BindableCollection<HomeItemViewModel>();
        }
示例#4
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));
        }
示例#5
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>();
 }
示例#6
0
        public SaleViewModel(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 = "PURCHASE";
            Products = new BindableCollection<SaleItemViewModel>();
        }