public FormDownload(HMEntities.UserProfiles.User currentUser)
 {
     InitializeComponent();
     this.currentUser = currentUser;
     this.downloadManager = new DownloadManager(currentUser);
     this.entityManager = new EntityManager(currentUser);
     this.dataManager = new DataManager(currentUser);
     downloadManager.ChppDownloadProgressChanged += new ChppDownloadProgressChangedEventHandler(OnChppDownloadProgressChanged);
 }
        private void buttonTest_Click(object sender, EventArgs e)
        {
            HTEntities.TeamDetails.TeamDetails teamDetails = new HTEntities.TeamDetails.TeamDetails();
            oAuth.ExchangeRequestTokenForAccessToken(textBoxSecurityCode.Text, out userProfile);

            Core.DownloadManager downloadManager = new DownloadManager(userProfile);

            this.Enabled = false;

            downloadManager.DownloadUserBasicData(out teamDetails);

            this.Enabled = true;

            LoadUserBasicData(teamDetails);

            ToggleControls();
        }