Пример #1
0
 /// <summary>
 /// Löscht den angegebenen Dateilink.
 /// </summary>
 /// <param name="linkedFile"></param>
 public void DeleteDateilink(FileLink linkedFile)
 {
     ModelManager.FileLinkService.DeleteFileLink(new System.IO.FileInfo(linkedFile.FullName), this, true);
 }
Пример #2
0
 /// <summary>
 /// Löscht die angegebene Dateiverknüpfung.
 /// </summary>
 /// <param name="fileLink"></param>
 /// <param name="deleteFile"></param>
 public void RemoveFileLink(FileLink fileLink, bool deleteFile)
 {
     ModelManager.FileLinkService.DeleteFileLink(new System.IO.FileInfo(fileLink.FullName), this, deleteFile);
 }
Пример #3
0
 /// <summary>
 /// Erzeugt eine neue Dateiverknüpfung für diesen Termin.
 /// </summary>
 /// <param name="fileName"></param>
 /// <param name="deleteOriginal"></param>
 public void AddFileLink(string fileName, bool deleteSourceFile = false)
 {
     FileLink newFileLink = ModelManager.FileLinkService.AddFileLink(new System.IO.FileInfo(fileName), this, Global.LinkedFilesPath, deleteSourceFile);
 }