//here we inject the the interface public MainGridDataContext(ILikeEventAggregator sharedService) { _sharedService = sharedService; //listen to selection changed _sharedService.PopupGridSelectionHandler += SharedServiceOnPopupGridSelectionHandler; }
//here we inject the the interface public PopupDataContext(ILikeEventAggregator sharedService) { _sharedService = sharedService; }