Пример #1
0
        /// <returns> the directory where the application should store its private data. </returns>
        public override Directory getApplicationDataDirectory()
        {
            Directory applicationDataDirectoryOverride = getApplicationDataDirectoryOverride();
            if (applicationDataDirectoryOverride != null)
                return applicationDataDirectoryOverride;

            if (applicationDataDirectory == null)
            {
                lock (lockObject)
                {
                    if (applicationDataDirectory == null)
                        applicationDataDirectory = new FileSystemDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
                }
            }
            return applicationDataDirectory;
        }
Пример #2
0
        /// <returns> the directory where the application should store its private data. </returns>
        public override Directory getApplicationDataDirectory()
        {
            Directory applicationDataDirectoryOverride = getApplicationDataDirectoryOverride();

            if (applicationDataDirectoryOverride != null)
            {
                return(applicationDataDirectoryOverride);
            }

            if (applicationDataDirectory == null)
            {
                lock (lockObject)
                {
                    if (applicationDataDirectory == null)
                    {
                        applicationDataDirectory = new FileSystemDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
                    }
                }
            }
            return(applicationDataDirectory);
        }
Пример #3
0
 public FileSystemFile(FileSystemDirectory parent, string filePath)
 {
     this.parent   = parent;
     this.filePath = filePath;
 }
Пример #4
0
 public FileSystemFile(FileSystemDirectory parent, string filePath)
 {
     this.parent = parent;
     this.filePath = filePath;
 }