Пример #1
0
 internal static Uri GetNewUri(Packaging.ZipPackage package, string sUri, ref int id)
 {
     Uri uri = new Uri(string.Format(sUri, id), UriKind.Relative);
     while (package.PartExists(uri))
     {
         uri = new Uri(string.Format(sUri, ++id), UriKind.Relative);
     }
     return uri;
 }
Пример #2
0
        private Uri GetNewUri(Packaging.ZipPackage package, string sUri)
        {
            Uri uri;

            do
            {
                uri = new Uri(string.Format(sUri, _id++), UriKind.Relative);
            }while (package.PartExists(uri));
            return(uri);
        }
Пример #3
0
        internal static Uri GetNewUri(Packaging.ZipPackage package, string sUri, int id)
        {
            Uri uri;

            do
            {
                uri = new Uri(string.Format(sUri, id++), UriKind.Relative);
            }while (package.PartExists(uri));
            return(uri);
        }