Example #1
0
 public static bool initSSH(SshConnection ssh)
 {
     SshConnection.CloseConnections();
     sshConn = ssh;
     sshConn.OnToggleConnectionStateHandler += MainForm.GetInstance().sshConn_OnToggleConnectionStateHandler;
     return(sshConn.Open());
 }
Example #2
0
 static void Application_ApplicationExit(object sender, EventArgs e)
 {
     MySQLConnection.CloseConnections();
     SshConnection.CloseConnections();
 }