예제 #1
0
 /// ------------------------------------------------------------------------------------
 internal PaMediaFile(ICmMedia mediaFile)
 {
     OriginalPath         = mediaFile.MediaFileRA.OriginalPath;
     AbsoluteInternalPath = mediaFile.MediaFileRA.AbsoluteInternalPath;
     InternalPath         = mediaFile.MediaFileRA.InternalPath;
     xLabel = PaMultiString.Create(mediaFile.Label, mediaFile.Cache.ServiceLocator);
 }
예제 #2
0
		/// ------------------------------------------------------------------------------------
		internal PaMediaFile(ICmMedia mediaFile)
		{
			OriginalPath = mediaFile.MediaFileRA.OriginalPath;
			AbsoluteInternalPath = mediaFile.MediaFileRA.AbsoluteInternalPath;
			InternalPath = mediaFile.MediaFileRA.InternalPath;
			xLabel = PaMultiString.Create(mediaFile.Label, mediaFile.Cache.ServiceLocator);
		}
예제 #3
0
		private void WriteMediaFile(TextWriter w, ICmMedia file)
		{
			//LT-13681
			if (file == null || file.MediaFileRA == null)
				return;
			w.Write("<media href=\"");
			ExportFile(w, file.MediaFileRA.InternalPath, file.MediaFileRA.AbsoluteInternalPath, "audio",
				FdoFileHelper.ksMediaDir);
			//if (file.MediaFileRA != null)
			//    w.Write(XmlUtils.MakeSafeXmlAttribute(Path.GetFileName(file.MediaFileRA.InternalPath)));
			w.WriteLine("\">");
			WriteAllForms(w, "label", null, "form", file.Label);
			w.Write("</media>");
		}