Esempio n. 1
0
 private void btnTestSshConnection_Click(object sender, EventArgs e)
 {
     if (ValidateSshSettings())
     {
         try
         {
             ConnectionService.CreateSSHTunnel(server);
             ConnectionService.CloseSshTunnel(server);
             ctrlSshConnectionStatus.BackColor = COLOR_SUCCESS;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Information);
             ctrlSshConnectionStatus.BackColor = COLOR_FAIL;
         }
     }
 }