コード例 #1
0
        private void cbxCheckAllDownloadList_CheckedChanged(object sender, EventArgs e)
        {
            Control.ControlCollection ctrlColl = this.flpDownloadList.Controls;

            foreach (Control ctrl in ctrlColl)
            {
                if (ctrl.GetType().Equals(typeof(ucDownloadInfoBox)))
                {
                    ucDownloadInfoBox downInfoBox = ctrl as ucDownloadInfoBox;

                    if (this.cbxCheckAllDownloadList.Checked)
                    {
                        downInfoBox.SetCheck();
                    }
                    else
                    {
                        downInfoBox.SetUnCheck();
                    }
                }
            }
        }