コード例 #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>();
 }
コード例 #2
0
 private void PackageLoaded(ProjectViewModel ProjectViewModel)
 {
     _eventAggregator.GetEvent<ProjectLoadedEvent>().Publish(new ProjectLoadedEvent.Payload(ProjectViewModel));
 }