To get value of var from one class to another
<p>I have     <code>HashSet&lt;string&gt; black_list = new HashSet&lt;string&gt;();</code> in <code>Ok.cs</code>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
It is filling in one of functions in Ok.cs threded. But when all threads stopes Ineed to save a value of black_list to file from <code>Form1.cs</code>. How to do this?</p>

<pre><code>        public void go()
        {
            while (true)
            {
                string acc = "";
                lock (locker)
                {
                    if (accs.Count == 0)
                    {
                        break;
                    }
                    else
                        acc = accs.Dequeue();
                }
                if (Proxy.proxies.Count != 0)
                {
                    if (checkBox1.Checked)
                        Proxy.type = "http";
                    else if (checkBox2.Checked)
                        Proxy.type = "socks5";
                    else
                        Proxy.type = "none";
                    proxy = rand_proxy();
                }
                OK od = new OK(acc, proxy, Proxy.type);
                string login = od.Auth(ua);
                if (login == "Login")
                {
                    lock (locker)
                    {
                        good_auth++;
                        log_good_auth(good_auth);
                    }

                    string link = "http://www.site.ru/online?cmdted=";
                    link += textBox4.Text + "&amp;st.cmd=userFriendLive";
                    link += "&amp;st.ageFrom=" + textBox1.Text;
                    link += "&amp;st.ageTo=" + textBox2.Text;
                    if (checkBox3.Checked)
                        link += "&amp;st.male=1";
                    else if (checkBox4.Checked)
                        link += "&amp;st.female=2";
                    else
                        link += "&amp;st.male=1&amp;st.female=2";
                    link += "&amp;nsshownIds=&amp;st.city=" + HttpHelper.UrlEncode(textBox3.Text);

...
</code></pre>
