public static MysqlConnection GetInstance(string IP, string UserName, string Password, string Database) { if (instance == null) { instance = new MysqlConnection(IP, UserName, Password, Database); } return(instance); }
public LoggingData(string ip, string username, string password, string database) { mysql = MysqlConnection.GetInstance(ip, username, password, database); }