Пример #1
0
        public void AddToShoppingCart(string guess, decimal price, int quantity = 1)
        {
            var preferences = new ActivityPreferences(context, prefsName);

            preferences.AddCartItem(guess, price.ToString(), quantity);
            //shoppingCartItemAddedMessageBar.Show();
        }
Пример #2
0
 private void AddStringToList(string text)
 {
     if (!string.IsNullOrWhiteSpace(text))
     {
         cartItemsAdapter.AddCartItem(text);
         prefs.AddCartItem(text);
     }
     cartItemsAdapter.NotifyDataSetChanged();
 }