/// <summary>
        ///     Baseclass for the categorylist usercontrol
        /// </summary>
        /// <param name="categoryRepository">An instance of <see cref="IRepository{T}" /> of type category.</param>
        /// <param name="dialogService">An instance of <see cref="IDialogService" /></param>
        /// <param name="navigationService">An instance of <see cref="INavigationService" /></param>
        protected AbstractCategoryListViewModel(IRepository<Category> categoryRepository,
            IDialogService dialogService,
            INavigationService navigationService)
        {
            CategoryRepository = categoryRepository;
            DialogService = dialogService;
            NavigationService = navigationService;

            Categories = CategoryRepository.Data;
        }
        public RecurringPaymentListViewModel(IPaymentRepository paymentRepository,
            IDialogService dialogService,
            INavigationService navigationService)
        {
            this.paymentRepository = paymentRepository;
            this.dialogService = dialogService;
            this.navigationService = navigationService;

            AllPaymentViewModels = new ObservableCollection<PaymentViewModel>();
        }
        public RecurringPaymentListViewModel(IPaymentRepository paymentRepository,
                                             IDialogService dialogService,
                                             INavigationService navigationService)
        {
            this.paymentRepository = paymentRepository;
            this.dialogService     = dialogService;
            this.navigationService = navigationService;

            AllPaymentViewModels = new ObservableCollection <PaymentViewModel>();
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Baseclass for the categorylist usercontrol
        /// </summary>
        /// <param name="categoryRepository">An instance of <see cref="IRepository{T}" /> of type category.</param>
        /// <param name="dialogService">An instance of <see cref="IDialogService" /></param>
        /// <param name="navigationService">An instance of <see cref="INavigationService" /></param>
        protected AbstractCategoryListViewModel(IRepository <Category> categoryRepository,
                                                IDialogService dialogService,
                                                INavigationService navigationService)
        {
            CategoryRepository = categoryRepository;
            DialogService      = dialogService;
            NavigationService  = navigationService;

            Categories = CategoryRepository.Data;
        }
        public AccountListViewModel(IAccountRepository accountRepository,
            IPaymentRepository paymentRepository,
            IDialogService dialogService,
            INavigationService navigationService)
        {
            this.accountRepository = accountRepository;
            this.dialogService = dialogService;
            this.navigationService = navigationService;

            BalanceViewModel = new BalanceViewModel(accountRepository, paymentRepository);
        }
        public AccountListViewModel(IAccountRepository accountRepository,
                                    IPaymentRepository paymentRepository,
                                    IDialogService dialogService,
                                    INavigationService navigationService)
        {
            this.accountRepository = accountRepository;
            this.dialogService     = dialogService;
            this.navigationService = navigationService;

            BalanceViewModel = new BalanceViewModel(accountRepository, paymentRepository);
        }
Ejemplo n.º 7
0
        public ModifyPaymentViewModel(IPaymentRepository paymentRepository,
                                      IAccountRepository accountRepository,
                                      IDialogService dialogService,
                                      IPaymentManager paymentManager,
                                      IDefaultManager defaultManager,
                                      INavigationService navigationService)
        {
            this.paymentRepository = paymentRepository;
            this.dialogService     = dialogService;
            this.paymentManager    = paymentManager;
            this.defaultManager    = defaultManager;
            this.navigationService = navigationService;
            this.accountRepository = accountRepository;

            MessengerInstance.Register <Category>(this, category => SelectedPayment.Category = category);
        }
        public ModifyPaymentViewModel(IPaymentRepository paymentRepository,
            IAccountRepository accountRepository,
            IDialogService dialogService,
            IPaymentManager paymentManager,
            IDefaultManager defaultManager,
            INavigationService navigationService)
        {
            this.paymentRepository = paymentRepository;
            this.dialogService = dialogService;
            this.paymentManager = paymentManager;
            this.defaultManager = defaultManager;
            this.navigationService = navigationService;
            this.accountRepository = accountRepository;

            MessengerInstance.Register<Category>(this, category => SelectedPayment.Category = category);
        }
        public PaymentListViewModel(IPaymentRepository paymentRepository,
            IAccountRepository accountRepository,
            IBalanceViewModel balanceViewModel,
            IDialogService dialogService,
            INavigationService navigationService,
            IPaymentManager paymentManager)
        {
            this.paymentRepository = paymentRepository;
            this.accountRepository = accountRepository;
            this.balanceViewModel = balanceViewModel;
            this.dialogService = dialogService;
            this.navigationService = navigationService;
            this.paymentManager = paymentManager;

            BalanceViewModel = new PaymentViewModelListBalanceViewModel(accountRepository, paymentRepository);
        }
Ejemplo n.º 10
0
        public PaymentListViewModel(IPaymentRepository paymentRepository,
                                    IAccountRepository accountRepository,
                                    IBalanceViewModel balanceViewModel,
                                    IDialogService dialogService,
                                    INavigationService navigationService,
                                    IPaymentManager paymentManager)
        {
            this.paymentRepository = paymentRepository;
            this.accountRepository = accountRepository;
            this.balanceViewModel  = balanceViewModel;
            this.dialogService     = dialogService;
            this.navigationService = navigationService;
            this.paymentManager    = paymentManager;

            BalanceViewModel = new PaymentViewModelListBalanceViewModel(accountRepository, paymentRepository);
        }
 /// <summary>
 ///     Creates an CategoryListViewModel for usage when the list including the option is needed.
 /// </summary>
 /// <param name="categoryRepository">An instance of <see cref="IRepository{T}" /> of type category.</param>
 /// <param name="dialogService">An instance of <see cref="Interfaces.IDialogService" /></param>
 public CategoryListViewModel(IRepository <Category> categoryRepository, IDialogService dialogService,
                              INavigationService navigationService)
     : base(categoryRepository, dialogService, navigationService)
 {
 }
 /// <summary>
 ///     Creates an CategoryListViewModel for usage when the list including the option is needed.
 /// </summary>
 /// <param name="categoryRepository">An instance of <see cref="IRepository{T}" /> of type category.</param>
 /// <param name="dialogService">An instance of <see cref="Interfaces.IDialogService" /></param>
 public CategoryListViewModel(IRepository<Category> categoryRepository, IDialogService dialogService,
     INavigationService navigationService)
     : base(categoryRepository, dialogService, navigationService)
 {
 }