using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using Learun.Application.TwoDevelopment.EvaluationTeach; namespace Quanjiang.DigitalScholl.Tools { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Thread mainthread = null; private void button1_Click(object sender, EventArgs e) { ThreadStart threadstart = new ThreadStart(TransferCoreData); mainthread = new Thread(threadstart); mainthread.Name = "main"; mainthread.Start(); //ask_MainIBLL.Clean("9d2191c4-a709-4a0f-b49b-7ad46667d4e9"); } public void TransferCoreData() { FormProgress progress = new FormProgress(); progress.ShowDialog(); } } }