Exemple #1
0
 public ReturnPackageService(IProjectsControllerService projectsControllerService)
 {
     _projectsControllerService = projectsControllerService;
     _returnPackage             = new ReturnPackage
     {
         SelectedTargetFilesForImport = new List <ProjectFile>(),
         ReturnFilesDetails           = new List <ReturnFileDetails>()
     };
 }
        public ImportWizard(ObservableCollection <IProgressHeaderItem> pages, IEventAggregatorService eventAggregatorService, IProjectsControllerService projectsControllerService)
        {
            InitializeComponent();
            UpdatePageIndexes(pages);
            AddDataTemplates(this, pages);

            _model = new WizardViewModel(this, pages, eventAggregatorService);
            _model.SelectedPageChanged += Model_SelectedPageChanged;
            _model.RequestClose        += ProjectWizardViewModel_RequestClose;
            _projectControllerService   = projectsControllerService;
            _projectCreatedEvent        = eventAggregatorService.Subscribe <ProjectCreated>(OnProjectCreated);

            DataContext = _model;
        }