/// <summary>
 /// Verifying file path and adding - if necessary - application path at the front
 /// </summary>
 /// <param name="pFilePath">File path</param>
 /// <returns>File path verified</returns>
 public static string VerifyFilePath(string pFilePath)
 {
     if (Path.GetDirectoryName(pFilePath).Length == 0)
     {
         pFilePath = ApplicationToolkit.ApplicationFilePath(pFilePath);
     }
     return(pFilePath);
 }
Exemple #2
0
 /// <summary>
 /// Loading file system
 /// </summary>
 /// <param name="pFilePath">File path</param>
 /// <param name="pErrorIfFileDoesntExist">Flag to throw an error if file doesn't exist</param>
 public void LoadFileSystem(string pFilePath, bool pErrorIfFileDoesntExist)
 {
     pFilePath = ApplicationToolkit.VerifyFilePath(pFilePath);
     if (TheApplication.CheckIfFileExists(pFilePath, pErrorIfFileDoesntExist))
     {
         this.InitialiseFolderIconChanger();
         this.Log = null;
         this.FolderIconChanger.LoadFileSystem(pFilePath);
     }
 }
Exemple #3
0
 /// <summary>
 /// Loading defaults (icons, file system)
 /// </summary>
 public void LoadDefaults()
 {
     this.LoadIcons(ApplicationToolkit.ApplicationFilePath(TheApplication.DefaultIconsPath), false);
     this.LoadFileSystem(ApplicationToolkit.ApplicationFilePath(TheApplication.DefaultFileSystemPath), false);
 }