コード例 #1
0
        public OfferCreateViewModel(ISettingsService settingsService, IOfferProducerService offerService)
        {
            this.settingsService     = settingsService;
            this.offerService        = offerService;
            this.offerService.Added += OfferService_Added;

            ResetOffer();
        }
コード例 #2
0
        public OfferOverviewViewModel(IOfferProducerService offerProducerService)
            : this("My offers")
        {
            this.offerProducerService        = offerProducerService;
            this.offerProducerService.Added += OfferService_Added;

            this.Offers = new BindableCollection <Offer>();
        }
コード例 #3
0
        public ShellViewModel(ISettingsService settingsService, IOfferProducerService offerProducerService, IStellarService stellarService)
        {
            FlyoutViewModels = new BindableCollection <FlyoutBaseViewModel>();

            OfferOverviewVieModel    = new OfferOverviewViewModel(offerProducerService);
            OfferCreateViewModel     = new OfferCreateViewModel(settingsService, offerProducerService);
            PaymentOverviewViewModel = new PaymentOverviewViewModel(stellarService);
            AccountViewModel         = new AccountViewModel(stellarService);
        }