Example #1
0
        public override void Detach()
        {
            base.Detach();

            foreach (PackageViewModel item in _packages)
            {
                UnregisterPackage(item);
            }

            _defaultLanguagePackageIds.Detach();

            _packages.CollectionChanged -= _packages_CollectionChanged;
            _packages.Detach();

            _nonePackage.Detach();

            if (_packagesView != null)
            {
                _packagesView.CurrentChanged -= PackagesView_CurrentChanged;
            }

            _resultingItemsWorker.DoWork -= ResultingItemsWorker_DoWork;

            ProjectViewModel.Current.PropertyChanged -= ProjectViewModel_PropertyChanged;
        }
Example #2
0
        public override void Detach()
        {
            base.Detach();

            _resultingItems.CollectionChanged -= _resultingItems_CollectionChanged;
            _items.CollectionChanged          -= _items_CollectionChanged;
            _layoutItems.CollectionChanged    -= _layoutItems_CollectionChanged;

            _items.Detach();
            _layoutItems.Detach();

            _sizeSumWorker.DoWork             -= SizeSumWorker_DoWork;
            _sizeSumWorker.RunWorkerCompleted -= SizeSumWorker_RunWorkerCompleted;

            PropertyChanged -= PackageViewModel_PropertyChanged;

            _manualPackagingInfo.PropertyChanged -= ManualPackagingInfo_PropertyChanged;
        }