public void Run()
 {
     Task f = Task.Factory.StartNew(() =>
     {
         while (true)
         {
             _dbServiceClient = new DbServiceClient();
             try
             {
                 _dbServiceClient.TestConnection();
             }
             catch (FaultException <DbConnectionError> exception)
             {
                 MessageBox.Show(exception.Detail.Message, "Forbindelsesfejl");
                 break;
             }
             Thread.Sleep(5000);
         }
     });
 }