MySQLConnection mySQLConnection; //mysql connection /// <summary> /// Create a new instance of the <see cref="T:MarshApp.Manager.MySQLManager"/> class. /// </summary> public MySQLManager() { //database login informations mySQLConnection = new MySQLConnection("address", "db", "user", "password :)"); mySQLConnection.CreateConnection(); //mysql heartbeat timer, 10secs to keep db connection alive Timer heartBeatTimer = new Timer(DBConnectHeartBeat, null, 0, 10000); }