Esempio n. 1
0
        private void Button_SelectProcess_Click(object sender, EventArgs e)
        {
            Form_Process SelectProcess = new Form_Process();

            SelectProcess.ShowDialog();
            if (SelectProcess.TargetProcess != null)
            {
                this.Process = SelectProcess.TargetProcess;
            }
        }
Esempio n. 2
0
 public void Start(string projectPath, Form_main mainForm)
 {
     form = new Form_Process();
     form.Show();
     try
     {
         Thread thread = new Thread(() => StartThread(projectPath, mainForm));
         thread.Start();
     }
     catch (Exception e)
     {
         ExceptionHandler.ShowError("创建线程", e);
     }
 }