public SelectProjectViewModelFactory(IEventAggregator EventAggregator, ILoadProjectService LoadProjectService,
                                      IRecentProjectsService RecentProjectsService, RecentProjectViewModelFactory RecentProjectViewModelFactory)
 {
     _eventAggregator = EventAggregator;
     _loadProjectService = LoadProjectService;
     _recentProjectsService = RecentProjectsService;
     _recentProjectViewModelFactory = RecentProjectViewModelFactory;
 }
Ejemplo n.º 2
0
 public SilentPacker(ILaunchParameters LaunchParameters, IPackageSavingTool SavingTool, IProjectSerializer ProjectSerializer,
                     IVariablesProcessor VariablesProcessor, IRecentProjectsService RecentProjectsService)
 {
     _launchParameters = LaunchParameters;
     _savingTool = SavingTool;
     _projectSerializer = ProjectSerializer;
     _variablesProcessor = VariablesProcessor;
     _recentProjectsService = RecentProjectsService;
 }
Ejemplo n.º 3
0
 public MainViewModel(FirmwareVersionViewModel Version, ProjectViewModel Project, IPackageSavingService PackageSavingService,
                      IRecentProjectsService RecentProjectsService)
 {
     this.Project = Project;
     _packageSavingService = PackageSavingService;
     _recentProjectsService = RecentProjectsService;
     this.Version = Version;
     SaveCommand = new DelegateCommand(Save, Verify);
     SaveFileRequest = new InteractionRequest<SaveFileInteractionContext>();
 }
Ejemplo n.º 4
0
 public RootViewModelFactory(MainViewModelFactory MainViewModelFactory, SelectProjectViewModelFactory SelectProjectViewModelFactory,
                             IEventAggregator EventAggregator, ILaunchParameters LaunchParameters, ILoadProjectService LoadProjectService,
                             IRecentProjectsService RecentProjectsService, IPackageSavingService PackageSavingService)
 {
     _mainViewModelFactory = MainViewModelFactory;
     _eventAggregator = EventAggregator;
     _selectProjectViewModelFactory = SelectProjectViewModelFactory;
     _launchParameters = LaunchParameters;
     _loadProjectService = LoadProjectService;
     _recentProjectsService = RecentProjectsService;
     _packageSavingService = PackageSavingService;
 }
Ejemplo n.º 5
0
        public RootViewModel(MainViewModelFactory MainViewModelFactory, SelectProjectViewModelFactory SelectProjectViewModelFactory,
                             IEventAggregator EventAggregator, ILaunchParameters LaunchParameters, ILoadProjectService LoadProjectService,
                             IRecentProjectsService RecentProjectsService, IPackageSavingService PackageSavingService)
        {
            _mainViewModelFactory = MainViewModelFactory;
            _launchParameters = LaunchParameters;
            _loadProjectService = LoadProjectService;
            _recentProjectsService = RecentProjectsService;
            _packageSavingService = PackageSavingService;

            ActualViewModel = GetDefaultViewModel(SelectProjectViewModelFactory);
            EventAggregator.GetEvent<ProjectLoadedEvent>().Subscribe(ReloadViewModel);
        }
Ejemplo n.º 6
0
 public MainViewModelFactory(IPackageSavingService PackageSavingService, IRecentProjectsService RecentProjectsService)
 {
     _packageSavingService = PackageSavingService;
     _recentProjectsService = RecentProjectsService;
 }