Ejemplo n.º 1
0
        public static MatchViewModel FromMatch(Match match)
        {
            var groupViewModel = GroupViewModel.GetOrCreate(match.Group);
            var result         = new MatchViewModel
            {
                _match = match,
                _Group = groupViewModel
            };

            GoalViewModel.FromGoals(match.Goals)
            .OrderBy(x => x.GoalID)
            .ForEach(result.Goals.Add);

            MatchResultViewModel.FromMatchResults(match.MatchResults)
            .OrderBy(x => x.ResultOrderID)
            .ForEach(result.MatchResults.Add);
            return(result);
        }
Ejemplo n.º 2
0
        private void GotoNext()
        {
            int index = Groups.IndexOf(SelectedGroup);

            SelectedGroup = Groups[index + 1];
        }
Ejemplo n.º 3
0
        private void GotoPrevious()
        {
            int index = Groups.IndexOf(SelectedGroup);

            SelectedGroup = Groups[index - 1];
        }