Пример #1
0
        private static List <PropertyItem> AddDefaultItem(List <PropertyItem> p, bool addDefault)
        {
            if (addDefault)
            {
                p.Insert(0, UsersProperties.DefaultItem());
            }

            return(p);
        }
Пример #2
0
        public static List <PropertyItem> Excercise(int cultureId, bool addDefault)
        {
            List <PropertyItem> r = new List <PropertyItem>();

            var x = from a in Properties.Excercise where a.CultureId == cultureId select a;

            r = x.ToList <PropertyItem>();

            UsersProperties.AddDefaultItem(r, addDefault);

            return(r);
        }
Пример #3
0
        public static List <PropertyItem> FreeTimeFavorites(int cultureId, bool addDefault)
        {
            List <PropertyItem> r = new List <PropertyItem>();

            var x = from a in Properties.FreeTimeFavorites where a.CultureId == cultureId select a;

            r = x.ToList <PropertyItem>();

            UsersProperties.AddDefaultItem(r, addDefault);

            return(r);
        }