public static bool Connect() { try { SP13Connection.Open(); } catch (MySql.Data.MySqlClient.MySqlException ex) { MessageBox.Show(ex.ToString()); } ConnectionState = true; return(ConnectionState); }
public static bool Disconnect() { SP13Connection.Close(); ConnectionState = false; return(true); }