public void SaveProject() { var project = _context.CurrentProject; if (project == null) { return; } //try to lock the file if it exisits or is not lock already _context.LockFile(project.FilePath); _contextPersistor.Save(_context); //once the project was saved, we should be able to access the file we just saved _context.AccessFile(project.FilePath); //we just save the project. It is not readonly per construction _context.ProjectIsReadOnly = false; }