private void button10_Click(object sender, EventArgs e) { var process = new ForThreads(); process.Progress += ProcessorProgress; process.BackAllText2 += RefAllText2; var thread = new Thread(new ParameterizedThreadStart(process.CreateExportingTXTfromAllText2)); progressBar1.Maximum = allText2.Count - 1; thread.Start(allText2); }
private void button6_Click(object sender, EventArgs e) { List <List <AllText> > text = new List <List <AllText> >(); text.Add(allText); text.Add(allText2); var process = new ForThreads(); process.Progress += ProcessorProgress; process.BackAllText2 += RefAllText2; var thread = new Thread(new ParameterizedThreadStart(process.CreateGlossaryFromFirstAndSecondAllText)); progressBar1.Maximum = allText.Count - 1; thread.Start(text); }