コード例 #1
0
        private static string GetBackupFileName()
        {
            string newGUID    = Guid.NewGuid().ToString();
            long   fileDate   = DateTime.Now.ToFileTime();
            string backupFile = String.Format("Terminals-{1}-{0}.config", newGUID, fileDate);

            return(FileLocations.GetFullPath(backupFile));
        }
コード例 #2
0
 internal Settings()
 {
     this.fileLocations = new FileLocations(this);
 }
コード例 #3
0
 private Settings(Func <string, IDataFileWatcher> initializeFileWatcher)
 {
     this.fileLocations                    = new FileLocations(this);
     this.initializeFileWatcher            = initializeFileWatcher;
     this.fileLocations.ConfigFileChanged += this.ConfigFilePathChanged;
 }