CreateDefaultModifiedVersion() public method

public CreateDefaultModifiedVersion ( uint base_version_id, bool create_file ) : uint
base_version_id uint
create_file bool
return uint
示例#1
0
        public EditTarget(BrowsablePointer item)
        {
            this.item = item;
            photo     = item.Current as Photo;
            if (photo != null)
            {
                version = photo.DefaultVersionId;
                bool create = version == Photo.OriginalVersionId;

                if (create)
                {
                    version         = photo.CreateDefaultModifiedVersion(photo.DefaultVersionId, false);
                    created_version = true;
                }
            }
        }
		public EditTarget (BrowsablePointer item)
		{
			this.item = item;
			photo = item.Current as Photo;
			if (photo != null) {
				version = photo.DefaultVersionId;
				bool create = version == Photo.OriginalVersionId;
				
				if (create) {
					version = photo.CreateDefaultModifiedVersion (photo.DefaultVersionId, false);
					created_version = true;
				}
			}
		}