/// <summary> /// Constructor /// </summary> /// <param name="currentUser">Current active user</param> /// <param name="commonFolder">Common files download folder</param> public ChppManager(HMEntities.UserProfiles.User currentUser) { this.oAuth = new OAuthInterface(); this.currentUser = currentUser; this.dataManager = new HM.DataAccess.DataManager(System.IO.Path.Combine(Directory.GetCurrentDirectory(), FolderNames.CommonDataFolder)); this.currentDate = DateTime.Now.ToString(HM.Resources.Constants.Chpp.HMDateFormat); this.filesDownloaded = 0; this.totalFilesToDownload = 0; this.path = System.IO.Path.Combine(currentUser.dataFolderField, currentUser.teamIdField.ToString()); this.downloadExistingFiles = false; }