public OfferCreateViewModel(ISettingsService settingsService, IOfferProducerService offerService) { this.settingsService = settingsService; this.offerService = offerService; this.offerService.Added += OfferService_Added; ResetOffer(); }
public OfferOverviewViewModel(IOfferProducerService offerProducerService) : this("My offers") { this.offerProducerService = offerProducerService; this.offerProducerService.Added += OfferService_Added; this.Offers = new BindableCollection <Offer>(); }
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); }