예제 #1
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>();
 }
 private void PackageLoaded(ProjectViewModel ProjectViewModel)
 {
     _eventAggregator.GetEvent<ProjectLoadedEvent>().Publish(new ProjectLoadedEvent.Payload(ProjectViewModel));
 }