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