/// <summary>
 /// Initializes a new instance of the <see cref="SidenavFile"/> class.
 /// </summary>
 /// <param name="name">Name for file to show in sidenav.</param>
 /// <param name="inputFilePath">Full path to file in input directory.</param>
 /// <param name="fileType">Type of file.</param>
 /// <param name="link">Relative html link to file (on base domain).</param>
 /// <param name="parent">Sidenav parent folder.</param>
 public SidenavFile(string name, FileType fileType, string inputFilePath, string link, SidenavFolder parent)
 {
     FileName         = name;
     FileType         = fileType;
     InputFilePath    = inputFilePath;
     RelativeHtmlLink = link;
     Parent           = parent;
     Id = Guid.NewGuid().ToString().Substring(10);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SidenavFolder"/> class.
 /// </summary>
 /// <param name="name">Name of Sidenav folder.</param>
 /// <param name="inputFolderPath">Path to folder in the input directory.</param>
 /// <param name="htmlLink">Relative html link to file (on base domain).</param>
 /// <param name="parent">Sidenav parent folder.</param>
 public SidenavFolder(string name, string inputFolderPath, string htmlLink, SidenavFolder parent)
 {
     FolderName       = name;
     InputFolderPath  = inputFolderPath;
     RelativeHtmlLink = htmlLink;
     Folders          = new List <SidenavFolder>();
     Files            = new List <SidenavFile>();
     Parent           = parent;
     Id = Guid.NewGuid().ToString().Substring(10);
 }