Example #1
0
 public CalendarMainUseCase(
     // Get the ViewToRegionBinder that the baseclass needs
     IViewToRegionBinder viewtoToRegionBinder,
     // Get the factory that will create the viewmodel
     ObjectFactory <CalendarMainViewModel> calendarMainViewFactory) : base(viewtoToRegionBinder)
 {
     // When the usecase get's activated for the first time
     AddInitializationMethods(
         // Create the viewmodel and assign it to this variable
         () => this.viewModel = calendarMainViewFactory.CreateInstance());
 }
        public CalendarMainUseCase(
            // Get the ViewToRegionBinder that the baseclass needs
            IViewToRegionBinder viewtoToRegionBinder, 
            // Get the factory that will create the viewmodel
            ObjectFactory<CalendarMainViewModel> calendarMainViewFactory): base(viewtoToRegionBinder)
        {
            // When the usecase get's activated for the first time
            AddInitializationMethods(
                // Create the viewmodel and assign it to this variable
                () => this.viewModel = calendarMainViewFactory.CreateInstance());

        }