public NewEmailUseCase(
     IViewToRegionBinder viewtoToRegionBinder,
     ObjectFactory<NewEmailViewModel> newEmailViewFactory,
     ObjectFactory< NewEmailToolBarViewModel> newEmailToolBarFactory,
     IExchangeService exchangeService, 
     IRegionManager regionManager) : base (viewtoToRegionBinder)
 {
     this.AddInitializationMethods(
         () => this.newEmailViewModel = newEmailViewFactory.CreateInstance()
         , () => this.newEmailToolBarViewModel = newEmailToolBarFactory.CreateInstance());
     
     this.exchangeService = exchangeService;
     this.RegionManager = regionManager;
 }
Exemplo n.º 2
0
        public NewEmailUseCase(
            IViewToRegionBinder viewtoToRegionBinder,
            ObjectFactory <NewEmailViewModel> newEmailViewFactory,
            ObjectFactory <NewEmailToolBarViewModel> newEmailToolBarFactory,
            IExchangeService exchangeService,
            IRegionManager regionManager) : base(viewtoToRegionBinder)
        {
            this.AddInitializationMethods(
                () => this.newEmailViewModel          = newEmailViewFactory.CreateInstance()
                , () => this.newEmailToolBarViewModel = newEmailToolBarFactory.CreateInstance());

            this.exchangeService = exchangeService;
            this.RegionManager   = regionManager;
        }