// This doesn't check if a version of that name already exists, // it's supposed to be used only within the Photo and PhotoStore classes. public void AddVersionUnsafely(uint version_id, Uri base_uri, string filename, string import_md5, string name, bool is_protected) { versions[version_id] = new PhotoVersion(this, version_id, base_uri, filename, import_md5, name, is_protected); highestVersionId = Math.Max(version_id, highestVersionId); changes.AddVersion(version_id); }
// This doesn't check if a version of that name already exists, // it's supposed to be used only within the Photo and PhotoStore classes. internal void AddVersionUnsafely(uint version_id, System.Uri uri, string md5_sum, string name, bool is_protected) { Versions [version_id] = new PhotoVersion(this, version_id, uri, md5_sum, name, is_protected); highest_version_id = Math.Max(version_id, highest_version_id); changes.AddVersion(version_id); }