protected override void OnAppearing()
        {
            base.OnAppearing();
            SQLiteHelper databaseHelper = new SQLiteHelper();

            this.FootballPlayersListView.ItemsSource = databaseHelper.GetItems();
        }
Esempio n. 2
0
        public FootballPlayerListViewModel()
        {
            AddPlayerBTNTapped = new Command(OnAddPlayerBTNTapped);
            SQLiteHelper databaseHelper = new SQLiteHelper();

            FootballPlayerCollection = new ObservableCollection <FootballPlayer> (databaseHelper.GetItems());
        }
 public FootballPlayerListViewModel()
 {
     AddPlayerBTNTapped = new Command (OnAddPlayerBTNTapped);
     SQLiteHelper databaseHelper = new SQLiteHelper ();
     FootballPlayerCollection = new ObservableCollection<FootballPlayer> (databaseHelper.GetItems ());
 }
 protected override void OnAppearing()
 {
     base.OnAppearing ();
     SQLiteHelper databaseHelper = new SQLiteHelper ();
     this.FootballPlayersListView.ItemsSource = databaseHelper.GetItems ();
 }