Esempio n. 1
0
        public void StageProject(Project project)
        {
            if (project == null)
            {
                throw new ArgumentNullException(nameof(project));
            }

            stagedProject = new StagedProject(project, project.Create(new PersistenceRegistry()));
        }
Esempio n. 2
0
        public void StageProject(IProject project)
        {
            if (!(project is RiskeerProject riskeerProject))
            {
                throw new ArgumentNullException(nameof(project));
            }

            var registry = new PersistenceRegistry();

            stagedProject = new StagedProject(riskeerProject, riskeerProject.Create(registry));
        }
Esempio n. 3
0
 public void UnstageProject()
 {
     stagedProject = null;
 }