/// <summary> /// 是否连接成功 /// </summary> /// <returns></returns> public bool IsConnectSucess() { MySqlOpration mso = new MySqlOpration(); List <string> SqlInitInfo = new List <string>() { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, }; if (mso.MySqlConncet(SqlInitInfo) != null) { return(true); } else { return(false); } }