private void PublishChangeNotification(ISearchableEntity sourceEntity, FeatureSearchGroup destSearchGroup)
        {
            var notifier = PriceExpertApplication.Current.Container.Get <EventAggregator>();
            //EventAggregator notifier = ((EventAggregator)App.Current.Resources["EventManager"]);
            var data = new SearchGroupsUpdatedEvent(sourceEntity, destSearchGroup);

            notifier.Publish(data);
        }
Beispiel #2
0
 public SearchGroupsUpdatedEvent(ISearchableEntity sourceEntity, FeatureSearchGroup destinationSearchGroup)
 {
     SourceEntity           = sourceEntity;
     DestinationSearchGroup = destinationSearchGroup;
 }
        private bool RenameSearchGroupCanExecute(FeatureSearchGroup searchGroup)
        {
            bool result = (searchGroup != null && searchGroup.CanNameChange);

            return(result);
        }
        private bool CreateNewEntityCanExecute(FeatureSearchGroup searchGroup)
        {
            bool result = (searchGroup != null && searchGroup.CanSearchKeyChange);

            return(result);
        }
 private void OnSelectedSearchGroupChanged(FeatureSearchGroup searchGroup)
 {
     this.RaisePropertyChanged("IsSearchFilterSelected");
 }