public void NewProject(string folder, string name)
        {
            string         path    = Path.Combine(folder, name + Constant.PROJECT_FILE_EXTENSION);
            IPackage       package = _packageService.Create(path);
            ProjectSummary summary = new ProjectSummary();

            summary.FirstRun = true;
            package.AddFileContent(summary.ToXml(), Constant.PACKAGE_SUMMARY_FILE_NAME);
            ProjectEntityDev projectEntity = new ProjectEntityDev();

            projectEntity.Name             = name;
            projectEntity.Code             = "NewProject";
            projectEntity.UserModel        = true;
            projectEntity.UserPopedomModel = true;
            projectEntity.UserSubsequent   = true;
            package.AddFileContent(projectEntity.ToXml(), Constant.PACKAGE_PROJECT_FILE_NAME);
            package.Close();
            ProjectEventArgs args = new ProjectEventArgs(path);

            _eventAggregator.GetEvent <ProjectCreatedEvent>().Publish(args);
        }
 public void Save(ProjectSummary projectSummary)
 {
     _packageService.Current.AddFileContent(projectSummary.ToXml(), Constant.PACKAGE_SUMMARY_FILE_NAME);
 }