Ejemplo n.º 1
0
        //FIXME: store versions next to originals. will crash on ro locations.
        string GetFilenameForVersionName(string version_name, string extension)
        {
            string name_without_extension = Path.GetFileNameWithoutExtension(Name);

            return(name_without_extension + " (" +
                   UriUtils.EscapeString(version_name, true, true, true)
                   + ")" + extension);
        }
Ejemplo n.º 2
0
        //FIXME: store versions next to originals. will crash on ro locations.
        private System.Uri GetUriForVersionName(string version_name, string extension)
        {
            string name_without_extension = System.IO.Path.GetFileNameWithoutExtension(Name);

#if MONO_2_0
            return(new System.Uri(System.IO.Path.Combine(DirectoryPath, name_without_extension
                                                         + " (" + UriUtils.EscapeString(version_name, false, true, true) + ")" + extension)));
#else
            return(new System.Uri(System.IO.Path.Combine(DirectoryPath, name_without_extension
                                                         + " (" + UriUtils.EscapeString(version_name, false, true, true) + ")" + extension), true));
#endif
        }