public IPLScheduleViewModel(IRegionManager regionManger, IEventAggregator eventAggregator, IDataReaderLogic DataReaderLogic) { dataReaderLogic = DataReaderLogic; _eventAggregator = eventAggregator; _iPLScheduleDetails = new ObservableCollection <IPLSchedule>((dataReaderLogic.GetAllIPLSchedule())); MatchScoreDelegateCommand = new DelegateCommand <IPLSchedule>(Execute); _regionManger = regionManger; }
public ScoreDetailsViewModel(IRunsCalculatorLogic RunsCalculatorLogic, ILoadRepository LoadRepository, IEventAggregator eventAggregator, IDataReaderLogic DataReaderLogic, ISqlQueries SqlQueries) { dataReaderLogic = DataReaderLogic; runsCalculatorLogic = RunsCalculatorLogic; loadRepository = LoadRepository; _eventAggregator = eventAggregator; sqlQueries = SqlQueries; _eventAggregator.GetEvent <MatchNoEvent>().Subscribe(MatchNoReceived); CalculateScoreDelegateCommand = new DelegateCommand(Execute, CanExecute); GoBackDelegateCommand = new DelegateCommand(GoBack); FPLTeamDelegateCommand = new DelegateCommand(GetFPLTeamPoints); FPLTeamLists = dataReaderLogic.GetAllFPLTeam(); }
public LoadRepository(IDataReaderLogic DataReaderLogic, IEventAggregator eventAggregator) { dataReaderLogic = DataReaderLogic; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <MatchNoEvent>().Subscribe(MatchNoReceived); }