private void OnApply()
 {
     DbConnector = new DbConnector(ConnectionString);
     if (!DbConnector.CheckConnection())
     {
         ConResultOne            = "Connection";
         ConResultTwo            = "Failed";
         ConnectionUpdate        = true;
         visibilityTimer.Enabled = true;
     }
     else
     {
         IsVisible = false;
         conControlBase.ConnectionChanged();
     }
 }
 private void OnTestCon()
 {
     DbConnector = new DbConnector(ConnectionString);
     if (DbConnector.CheckConnection())
     {
         ConResultOne = "Connection";
         ConResultTwo = "Succeeded";
     }
     else
     {
         ConResultOne = "Connection";
         ConResultTwo = "Failed";
     }
     ConnectionUpdate        = true;
     visibilityTimer.Enabled = true;
 }