private void checkBox2_CheckedChanged(object sender, EventArgs e) { for (int i = 0; i < AppliedSettingsListBox.Items.Count; i++) { AppliedSettingsListBox.SetItemChecked(i, appliedAllCheckbox.Checked); } }
private void ApplySettings_Click(object sender, EventArgs e) { this.Enabled = false; foreach (Settings setting in toApplyListBox.CheckedItems) { comparison.DoMapping(setting); if (setting.phase == Phase.INIT) { AppliedSettingsListBox.Items.Clear(); } AppliedSettingsListBox.Items.Add(setting); } AppliedSettingsListBox.Refresh(); AfterGuess(); }