private void OnRemoveCustomItemExecute() { SelectedCustomItem.PropertyChanged -= WrappedCustomItem_PropertyChanged; _customItemRepository.Remove(SelectedCustomItem.Model); CustomItems.Remove(_selectedCustomItem); SelectedCustomItem = null; HasChanges = _customItemRepository.HasChanges(); SaveCommand.RaiseCanExecuteChanged(); }