Ejemplo n.º 1
0
        private static List <PropertyItem> AddDefaultItem(List <PropertyItem> p, bool addDefault)
        {
            if (addDefault)
            {
                p.Insert(0, UsersProperties.DefaultItem());
            }

            return(p);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }