private void RestoreUserCtrl_Load(object sender, EventArgs e) { tbarThread.Value = Settings.ThreadsRest; m_task.m_threadCount = Settings.ThreadsRest; ThreadText(); btnRestAll.Enabled = false; m_task.m_steamDir = Settings.SteamDir; m_task.m_backupDir = Settings.BackupDir; m_task.Scan(); // use databinding instead of direct access to the control chkList.DataSource = m_task.m_jobList; chkList.DisplayMember = "m_name"; UpdCheckBoxList(); UpdLibDropBox(); }