Beispiel #1
0
        private void WczytajDane()
        {
            allItems = db.SelectTable(); //potencjalny blad
            var adapter = new ItemListViewAdapter(this, allItems);

            cartListView.Adapter = adapter;
        }
 private void CartButton_Click(object sender, EventArgs e)
 {
     if (dbCart.SelectTable().Count == 0)
     {
         Toast.MakeText(Application.Context, "Lista przedmiotów jest pusta!", ToastLength.Short).Show();
     }
     else
     {
         var intent = new Intent(this, typeof(CartMenuActivity));
         StartActivity(intent);
     }
 }