protected override void Dispose(bool disposing) { imageLoader.Loaded -= ImageLoaded; imageLoader.Dispose(); viewModel.PropertyChanged -= ViewModelPropertyChanged; parentViewModel.Dispose(); DisposeExistingTimer(); base.Dispose(disposing); }
protected override void Dispose(bool disposing) { imageLoader.Loaded -= ImageLoaded; imageLoader.Dispose(); RemoveSelectedPackagePropertyChangedEventHandler(); viewModel.PropertyChanged -= ViewModelPropertyChanged; viewModel.Dispose(); DisposeExistingTimer(); DisposePopulatePackageVersionsTimer(); packageStore.Clear(); viewModel = null; base.Dispose(disposing); }
protected override void Dispose(bool disposing) { closeButton.Clicked -= CloseButtonClicked; currentPackageVersionLabel.BoundsChanged -= PackageVersionLabelBoundsChanged; imageLoader.Loaded -= ImageLoaded; imageLoader.Dispose(); RemoveSelectedPackagePropertyChangedEventHandler(); viewModel.PropertyChanged -= ViewModelPropertyChanged; viewModel.Dispose(); DisposeExistingTimer(); DisposePopulatePackageVersionsTimer(); packageStore.Clear(); projectStore?.Clear(); viewModel = null; base.Dispose(disposing); }
public override void Destroy() { viewModel.Dispose(); RemovePackageManagementEventHandlers(); base.Destroy(); }