Example #1
0
 public static ClinicDatabase GetInstance()
 {
     if (instance == null)
     {
         instance = new ClinicDatabase();
     }
     return(instance);
 }
Example #2
0
 public static void OpenСonnection(string host, string port, string password, string database)
 {
     instance = GetInstance();
     instance.Open(host, port, password, database);
 }