public RolesListUseCase( // Get the ViewToRegionBinder that the baseclass needs IViewToRegionBinder viewtoToRegionBinder , IRegionManager regionManager // Get the factories that can create the viewmodels , ObjectFactory <RolesListViewModel> rolesViewModel , ObjectFactory <RolesToolbarViewModel> rolesToolbarViewModel , IApplicationModel applicationModel) : base(viewtoToRegionBinder) { this._applicationModel = applicationModel; // Just before the view is initialized for the first time this.AddInitializationMethods( // Create the emailViewModel and assign it to this variable () => this._rolesListViewModel = rolesViewModel.CreateInstance() , () => this._rolesToolbarViewModel = rolesToolbarViewModel.CreateInstance()); }
public RolesListUseCase( // Get the ViewToRegionBinder that the baseclass needs IViewToRegionBinder viewtoToRegionBinder , IRegionManager regionManager // Get the factories that can create the viewmodels , ObjectFactory<RolesListViewModel> rolesViewModel , ObjectFactory<RolesToolbarViewModel> rolesToolbarViewModel , IApplicationModel applicationModel) : base(viewtoToRegionBinder) { this._applicationModel = applicationModel; // Just before the view is initialized for the first time this.AddInitializationMethods( // Create the emailViewModel and assign it to this variable () => this._rolesListViewModel = rolesViewModel.CreateInstance() , () => this._rolesToolbarViewModel = rolesToolbarViewModel.CreateInstance()); }