Index: /trunk/BazaReklam/ZamowieniaForm.cs
===================================================================
--- /trunk/BazaReklam/ZamowieniaForm.cs (revision 175)
+++ /trunk/BazaReklam/ZamowieniaForm.cs (revision 178)
@@ -315,4 +315,6 @@
 
                 wystawFakture(zamowienie, klient);
+
+                RestoreConnections();
 
                 this.zamowieniaBindingSource.ResetBindings(false);
@@ -903,4 +905,6 @@
             }
 
+            RestoreConnections();
+
             this.Cursor = Cursors.Default;
         }
@@ -1424,6 +1428,18 @@
                 usunFakture((REKLAMADataSet.FAKTURYRow)rows[0]);
 
+                RestoreConnections();
+
                 this.Cursor = Cursors.Default;
             }
+        }
+
+        private void RestoreConnections()
+        {
+            fAKTURYTableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
+            emisjeTableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
+            zamowieniaTableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
+            fakturyDetailsTableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
+            rEKLAMATableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
+            wplatyTableAdapter.Connection = new SqlConnection(ConnString.getConnString().Value);
         }
     }
