/// <summary> /// 开始注册 /// </summary> /// <param name="programPath"></param> /// <param name="index"></param> public void Start(string programPath, int index) { m_index = index; m_mySqlDatabase = new MySqlDatabase(); m_mySqlDatabase.Connect("root", "game1314", "127.0.0.1", "wxbiz"); // 打开窗口 m_process = new Process(); m_process.StartInfo.FileName = programPath; m_process.StartInfo.UseShellExecute = false; m_process.Start(); Run = true; Task.Run(() => WorkThread(index)); }