Example #1
0
        private MoveToResourceConfiguration CreateMoveToResourceConfiguration(MoveToResourceConfiguration current)
        {
            _moveToResources = current ?? MoveToResourceConfiguration.Default;
            _moveToResources.ItemPropertyChanged += (_, __) => _moveToResourcesChangeThrottle.Tick();

            return(_moveToResources);
        }
        private MoveToResourceConfiguration LoadMoveToResourceConfiguration(MoveToResourceConfiguration current)
        {
            Contract.Ensures(Contract.Result <MoveToResourceConfiguration>() != null);

            _moveToResources = current ?? MoveToResourceConfiguration.Default;
            _moveToResources.ItemPropertyChanged += (_, __) => _moveToResourcesChangeThrottle.Tick();

            return(_moveToResources);
        }
        protected override void OnReload()
        {
            _moveToResources = null;

            base.OnReload();
        }