public MainWindowViewModel() { _runRepository = new ArenaRunRepository(); initializeRunList(_runRepository); ViewModel = this; }
//methods private void initializeRunList(ArenaRunRepository repository) { foreach (ArenaRun run in repository) { RunList.Add(new ArenaRunViewModel(run)); } }