public PlotsVM(Action closeScreenAction) { _closeScreenAction = closeScreenAction; ActivePlots = new MBBindingList <PlotItemVM>(); foreach (var gamePlot in GameManager.Instance.PlotManager.GamePlots) { foreach (var plot in gamePlot) { ActivePlots.Add(new PlotItemVM(plot.Title, plot.Description, SetSelectedPlot)); } } AvailablePlots = new MBBindingList <PlotItemVM>(); foreach (var trigger in GameManager.Instance.Triggers.Where(trigger => trigger.CanPlayerStart())) { AvailablePlots.Add(new PlotItemVM(trigger.Title, trigger.Description, SetSelectedPlot)); } SetSelectedPlot(ActivePlots.FirstOrDefault()); IsThereAnyPlot = ActivePlots.Any(); RefreshValues(); }