private void button1_Click(object sender, EventArgs e) { textBox1.Enabled = false; button1.Enabled = false; mainWindow.show_console(); arrStr = new List<lineFound>(); worker.RunWorkerAsync(); }