Esempio n. 1
0
        private void LoadData()
        {
            var favouritesList = StaticCache.GetFavourites();

            rptFavourites.DataSource = favouritesList;
            rptFavourites.DataBind();

            if (favouritesList.Count > 0)
            {
                noneSelected.Visible = false;
            }
        }
Esempio n. 2
0
 private void SetFavouritesCount()
 {
     lblFavouritesCount.InnerText = StaticCache.GetFavourites().Count.ToString();
 }
Esempio n. 3
0
        public static bool IsPersonInFavourites(Person person)
        {
            List <Person> favourites = StaticCache.GetFavourites();

            return(favourites.Exists(a => a.EmployeeNumber.Equals(person.EmployeeNumber)));
        }