private void Download() { this.Cursor = Cursors.WaitCursor; this.mDownCheckTimer.Start(); this.SetControlEnabled(true); Control.ControlCollection ctrlColl = this.flpDownloadList.Controls; foreach (Control ctrl in ctrlColl) { if (ctrl.GetType().Equals(typeof(ucDownloadInfoBox))) { ucDownloadInfoBox downInfoBox = ctrl as ucDownloadInfoBox; if (downInfoBox.GetCheckState()) { downInfoBox.Download(); } } } }