title: C# loop on SettingsProperty
body: <p>I have multiple checkbox that are checked if application settings are true and update the setting value if they are checked/unchecked by the user.
  My issue is that there are lot of checkbox and settings, is there a way to do a loop in order to have less lines ? </p>
  
  <pre><code>checkBox1.Checked = Properties.Settings.Default.Setting1;
  checkBox1.Click += delegate {
          Properties.Settings.Default.Setting1 = checkBox1.Checked;
          Properties.Settings.Default.Save();
  };
  checkBox2.Checked = Properties.Settings.Default.Setting2;
  checkBox2.Click += delegate {
          Properties.Settings.Default.Setting2 = checkBox2.Checked;
          Properties.Settings.Default.Save();
  };
  checkBox3.Checked = Properties.Settings.Default.Setting3;
  checkBox3.Click += delegate {
          Properties.Settings.Default.Setting3 = checkBox3.Checked;
          Properties.Settings.Default.Save();
  };
  </code></pre>
  
  <p>Thank you for your propositions.</p>