/// <summary> /// Initializes a new instance of the <see cref="T:FileActivityEventArgs" /> class. /// </summary> /// <param name="file">The file that changed, if any (full path).</param> /// <param name="oldFileName">The old name of the file, if any (full path).</param> /// <param name="directory">The directory that changed, if any (full path).</param> /// <param name="oldDirectoryName">The old name of the directory, if any (full path).</param> /// <param name="page">The page owning the attachment, if any.</param> /// <param name="activity">The activity.</param> public FileActivityEventArgs(StFileInfo file, string oldFileName, StDirectoryInfo directory, string oldDirectoryName, PageInfo page, FileActivity activity) { File = file; OldFileName = oldFileName; Directory = directory; OldDirectoryName = oldDirectoryName; Page = page; Activity = activity; }
/// <summary> /// Gets the directory path of the file. /// </summary> /// <returns>The directory path.</returns> public string GetDirectory() { return(StDirectoryInfo.GetDirectory(FullName)); }