示例#1
0
 /// <summary>
 ///     Saves Rationale field into LinkedDocument
 /// </summary>
 /// <param name="element"></param>
 private void SaveDescription(IEAElement element)
 {
     //_element.Notes = Rationale;
     using (var tempFiles = new TempFileCollection())
     {
         string fileName = tempFiles.AddExtension("rtf");
         using (var file = new StreamWriter(fileName))
         {
             file.WriteLine(Description);
         }
         element.LoadFileIntoLinkedDocument(fileName);
     }
 }