diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-11-12 13:53:25 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-11-12 16:17:09 +0300 |
commit | c4639eedc198233f679676485f15b766ef59ea2b (patch) | |
tree | c62faaf6a26204f536ed3bfad85c25d9853d76ea /main | |
parent | 22b1f06371676c82d481d27278fad0f131cd8400 (diff) |
[NuGet] Unsubscribe UI events when disposing
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs index a78b0b49d7..136ef23a9a 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs @@ -98,11 +98,11 @@ namespace MonoDevelop.PackageManagement LoadViewModel (initialSearch); closeButton.Clicked += CloseButtonClicked; - this.showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked; - this.packageSourceComboBox.SelectionChanged += PackageSourceChanged; - this.addPackagesButton.Clicked += AddPackagesButtonClicked; - this.packageSearchEntry.Changed += PackageSearchEntryChanged; - this.packageVersionComboBox.SelectionChanged += PackageVersionChanged; + showPrereleaseCheckBox.Clicked += ShowPrereleaseCheckBoxClicked; + packageSourceComboBox.SelectionChanged += PackageSourceChanged; + addPackagesButton.Clicked += AddPackagesButtonClicked; + packageSearchEntry.Changed += PackageSearchEntryChanged; + packageVersionComboBox.SelectionChanged += PackageVersionChanged; imageLoader.Loaded += ImageLoaded; browseLabel.ButtonPressed += BrowseLabelButtonPressed; @@ -122,6 +122,21 @@ namespace MonoDevelop.PackageManagement closeButton.Clicked -= CloseButtonClicked; currentPackageVersionLabel.BoundsChanged -= PackageVersionLabelBoundsChanged; + showPrereleaseCheckBox.Clicked -= ShowPrereleaseCheckBoxClicked; + packageSourceComboBox.SelectionChanged -= PackageSourceChanged; + addPackagesButton.Clicked -= AddPackagesButtonClicked; + packageSearchEntry.Changed -= PackageSearchEntryChanged; + packageVersionComboBox.SelectionChanged -= PackageVersionChanged; + + browseLabel.ButtonPressed -= BrowseLabelButtonPressed; + browseLabel.KeyPressed -= BrowseLabelKeyPressed; + installedLabel.ButtonPressed -= InstalledLabelButtonPressed; + installedLabel.KeyPressed -= InstalledLabelKeyPressed; + updatesLabel.ButtonPressed -= UpdatesLabelButtonPressed; + updatesLabel.KeyPressed -= UpdatesLabelKeyPressed; + consolidateLabel.ButtonPressed -= ConsolidateLabelButtonPressed; + consolidateLabel.KeyPressed -= ConsolidateLabelKeyPressed; + imageLoader.Loaded -= ImageLoaded; imageLoader.Dispose (); |