Beispiel #1
0
        protected override TimelineEventVM CreateInstance(TimelineEvent model)
        {
            var viewModel = base.CreateInstance(model);

            if (model is LineupEvent)
            {
                StaticViewModels.Add(viewModel);
            }
            return(viewModel);
        }
Beispiel #2
0
        protected override DashboardVM CreateInstance(Dashboard model)
        {
            var vm = base.CreateInstance(model);

            if (model.Static)
            {
                StaticViewModels.Add(vm);
            }

            return(vm);
        }
Beispiel #3
0
        protected override TimelineEventVM CreateInstance(TimelineEvent model)
        {
            var viewModel = new LMTimelineEventVM {
                Model = (LMTimelineEvent)model
            };

            if (model is LineupEvent)
            {
                StaticViewModels.Add(viewModel);
            }
            return(viewModel);
        }
Beispiel #4
0
        protected override TeamVM CreateInstance(Team model)
        {
            LMTeamVM lMTeamVM = new LMTeamVM {
                Model = (LMTeam)model
            };

            if (model.Static)
            {
                StaticViewModels.Add(lMTeamVM);
            }

            return(lMTeamVM);
        }
Beispiel #5
0
        protected override LMDashboardVM CreateInstance(Dashboard model)
        {
            LMDashboardVM vm = new LMDashboardVM {
                Model = model
            };

            if (model.Static)
            {
                StaticViewModels.Add(vm);
            }

            return(vm);
        }