protected override TimelineEventVM CreateInstance(TimelineEvent model) { var viewModel = base.CreateInstance(model); if (model is LineupEvent) { StaticViewModels.Add(viewModel); } return(viewModel); }
protected override DashboardVM CreateInstance(Dashboard model) { var vm = base.CreateInstance(model); if (model.Static) { StaticViewModels.Add(vm); } return(vm); }
protected override TimelineEventVM CreateInstance(TimelineEvent model) { var viewModel = new LMTimelineEventVM { Model = (LMTimelineEvent)model }; if (model is LineupEvent) { StaticViewModels.Add(viewModel); } return(viewModel); }
protected override TeamVM CreateInstance(Team model) { LMTeamVM lMTeamVM = new LMTeamVM { Model = (LMTeam)model }; if (model.Static) { StaticViewModels.Add(lMTeamVM); } return(lMTeamVM); }
protected override LMDashboardVM CreateInstance(Dashboard model) { LMDashboardVM vm = new LMDashboardVM { Model = model }; if (model.Static) { StaticViewModels.Add(vm); } return(vm); }