//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); }
//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 }