private void OnDialogWindowClosed(object sender, EventArgs e)
        {
            foreach (PackagesProviderBase provider in explorer.Providers)
            {
                // give each provider a chance to clean up itself
                provider.Dispose();
            }

            explorer.Providers.Clear();

            // flush output messages to the Output console at once when the dialog is closed.
            _smartOutputConsoleProvider.Flush();

            _updateAllUIService.DisposeElement();

            if (_httpClientEvents != null)
            {
                _httpClientEvents.SendingRequest -= OnSendingRequest;
            }

            RemoveUpdateBar();
            RemoveRestoreBar();

            CurrentInstance = null;
        }
Esempio n. 2
0
        private void OnDialogWindowClosed(object sender, EventArgs e)
        {
            explorer.Providers.Clear();

            // flush output messages to the Output console at once when the dialog is closed.
            _smartOutputConsoleProvider.Flush();
        }
        private void OnDialogWindowClosed(object sender, EventArgs e)
        {
            foreach (PackagesProviderBase provider in explorer.Providers)
            {
                // give each provider a chance to clean up itself
                provider.Dispose();
            }

            explorer.Providers.Clear();

            // flush output messages to the Output console at once when the dialog is closed.
            _smartOutputConsoleProvider.Flush();

            CurrentInstance = null;
        }