Пример #1
0
        public static void save(string path, Panel panel)
        {
            string s;
            for (int i = 0; i < LoadList.newList.Count; i++)
            {
                StreamWriter sw = new StreamWriter(@"" + path + "\\out_clean_list.txt", true, System.Text.Encoding.UTF8);
                s = LoadList.newList[i];
                sw.WriteLine(s);
                sw.Close();
                s = "";
            }
            MessageBox.Show("Готово");

            panel.BeginInvoke((Action)delegate
            {
                panel.Enabled = true;
            });
        }