Beispiel #1
0
        private void DisconnectServices()
        {
            connected = false;
            CancelAwsThread();

            if (controller != null)
            {
                controller.StopSshd();
                bool portRedirected = controller.RemovePortRedirection();
                LogLine("Removed Port Redirection: " + portRedirected);
                LogLine("Disconnected.");
            }
        }
Beispiel #2
0
        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();
            }
        }