Index: trunk/BazaReklam/Classes/ConnString.cs
===================================================================
--- trunk/BazaReklam/Classes/ConnString.cs (revision 65)
+++ trunk/BazaReklam/Classes/ConnString.cs (revision 267)
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
+using System.Data.SqlClient;
 
 namespace Baza_Reklam
@@ -10,21 +8,41 @@
 
         public string Value
-         {
-             get { return this.value; }
-             set { this.value = value; } 
-         }
+        {
+            get { return value; }
+            set { this.value = value; }
+        }
 
         private static ConnString connectionString;
 
-        private ConnString() { 
+        private ConnString()
+        {
         }
 
         public static ConnString getConnString()
         {
-            if (connectionString == null){
+            if (connectionString == null)
+            {
                 connectionString = new ConnString();
-            } 
+            }
             return connectionString;
-        } 
+        }
+
+        public static string GetDataBaseInfo()
+        {
+            SqlConnection sqlConnection = null;
+            try
+            {
+                sqlConnection = new SqlConnection(getConnString().Value);
+                return sqlConnection.DataSource + "/" + sqlConnection.Database;
+            }
+            catch
+            {
+                return string.Empty;
+            }
+            finally
+            {
+                if (sqlConnection != null) sqlConnection.Dispose();
+            }
+        }
     }
 }
Index: trunk/BazaReklam/About.cs
===================================================================
--- trunk/BazaReklam/About.cs (revision 266)
+++ trunk/BazaReklam/About.cs (revision 267)
@@ -1,4 +1,3 @@
 using System;
-using System.Data.SqlClient;
 using System.Windows.Forms;
 
@@ -15,8 +14,5 @@
             lblVersion.Text = Application.ProductVersion;
 
-            SqlConnection sqlConnection = new SqlConnection(ConnString.getConnString().Value);
-
-            lblDB.Text = sqlConnection.DataSource + "/" + sqlConnection.Database;
-            sqlConnection.Dispose();
+            lblDB.Text = ConnString.GetDataBaseInfo();
         }
 
