.Settings file (.NET), working with a sub
<p>I am trying to write a sub which will allow me to pass in 2 values, one is the name of a button, the other is a setting name contained within the .Settings file. I'm a noob to .NET and have no idea how I might do this. Anyone? thanks</p>

<pre><code> private void setZoneValues(System.Windows.Forms.Button button, Settings1 setting)
    {
        if (button.BackColor == System.Drawing.Color.Lime)
        {
            button.BackColor = System.Drawing.Color.Tomato;
            Settings1.Default.&lt;**setting**&gt; = false;
        }

        else if (btnZone1.BackColor == System.Drawing.Color.Tomato)
        {
            btnZone1.BackColor = System.Drawing.Color.Lime;
            Settings1.Default.&lt;**setting**&gt;= true;
        }
    }
</code></pre>
