Ejemplo n.º 1
0
 public void Close()
 {
     try
     {
         this.bNotInUse = true;
         this.con.Close();
         if (this.DBSource_Type == 1)
         {
             DBCache.CloseSysDB(this.GetHashCode());
         }
         else
         {
             if (this.DBSource_Type == 2)
             {
                 DBCache.CloseDataDB(this.GetHashCode());
             }
             else
             {
                 if (this.DBSource_Type == 3)
                 {
                     DBCache.CloseThermalDB(this.GetHashCode());
                 }
             }
         }
     }
     catch (Exception)
     {
     }
 }