private void DisconnectServices() { connected = false; CancelAwsThread(); if (controller != null) { controller.StopSshd(); bool portRedirected = controller.RemovePortRedirection(); LogLine("Removed Port Redirection: " + portRedirected); LogLine("Disconnected."); } }
private void ExitApplication() { NotifyIcon.Visible = false; NotifyIcon.Dispose(); FileListingWindow.ClosingForreal = true; FileListingWindow.Close(); MainWindow.ClosingForreal = true; MainWindow.Close(); if (controller != null) { controller.StopSshd(); bool portRedirected = controller.RemovePortRedirection(); } }