protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.PoemsScreen); DBRepository repository = new DBRepository(); poems = repository.GetPoems(); CreateButtons(poems.Select(p => p.Title)); }