private void LoadItems() { var connection = DependencyService.Get <ISQLite>().GetConnection(); var items = connection.Table <ItemCartModel>().ToList(); CartItem.Clear(); foreach (var item in items) { CartItem.Add(new Cart() { UserItemname = item.ItemName, UserItemQuantity = item.ItemQuantity, UserItemPrice = item.ItemPrice, ItemDough = item.ItemDough, ItemSauce = item.ItemSauce }); TotalCost += (item.ItemPrice * item.ItemQuantity); } }