Example #1
0
        private void ReloadListFromDatabase()
        {
            Angebote.Clear();

            foreach (var item in dh.GetAllSpecialOffers())
            {
                Angebote.Add(item);
            }
        }
Example #2
0
        private void RefreshList(string selectedFilterMethode)
        {
            if (SelectedFilterMethode.Equals("Alle"))
            {
                ReloadListFromDatabase();
            }
            else
            {
                ReloadListFromDatabase();


                foreach (var item in FilterListByTime())
                {
                    Angebote.Add(item);
                }
            }
        }