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