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)); }
internal Settings() { this.fileLocations = new FileLocations(this); }
private Settings(Func <string, IDataFileWatcher> initializeFileWatcher) { this.fileLocations = new FileLocations(this); this.initializeFileWatcher = initializeFileWatcher; this.fileLocations.ConfigFileChanged += this.ConfigFilePathChanged; }