private void buttonCheckConnectivity_Click(object sender, EventArgs e)
 {
     if (localInterface.ConnecivityCheck(textBoxServer.Text, textBoxDatabase.Text, textBoxUsername.Text, textBoxPassword.Text))
     {
         pictureBoxConnection.Visible = true;
         Application.DoEvents();
         Thread.Sleep(2000);
     }
     pictureBoxConnection.Visible = false;
 }