Exemple #1
0
        static int urlThreadSuccessFlag = 1;//执行Url任务时候,如果为0,就跳出当前Url列表,重新开始新的列表.默认为成功(1)


        public Project(string ProjectName, MainForm objMainForm)
        {
            m_ProjectName = ProjectName;
            m_MainForm = objMainForm;
        }
Exemple #2
0
 private void btnStartProject_Click(object sender, EventArgs e)
 {
     objMainForm = this;
     Project objProject = new Project(cbbProject.Text.Trim(), objMainForm);
     ThreadStart myThreadDelegate = new ThreadStart(objProject.ExecuteProject);
     mythread = new Thread(myThreadDelegate);
     mythread.Start();
     btnStartProject.Enabled = false;
     btnStop.Enabled = true;
 }