/// <summary>
        /// Loads the list of rating categories for the Distibution Graph interface.
        /// </summary>
        /// <returns>A list of RatingCategory objects.</returns>
        public async Task <List <RatingCategory> > GetRatingCategoriesAsync()
        {
            List <RatingCategory> Result = await Task.Run(() => SearchVideoAccess.GetCustomRatingCategories());

            Result.Insert(0, new RatingCategory()
            {
                Name = "--------------------"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Love"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Egoless"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Spiritual Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Spiritual Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Emotional Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Emotional Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Physical Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Physical Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Intensity"
            });
            Result.Insert(0, new RatingCategory());
            return(Result);
        }
        /// <summary>
        /// Loads the list of rating categories for the Elements combobox.
        /// </summary>
        /// <returns>A list of RatingCategory objects.</returns>
        public async Task <List <RatingCategory> > GetElementCategoriesAsync()
        {
            List <RatingCategory> Result   = new List <RatingCategory>();
            List <RatingCategory> DbResult = await Task.Run(() => SearchVideoAccess.GetCustomRatingCategories());

            Result.Add(new RatingCategory()
            {
                Name = ""
            });
            Result.Add(new RatingCategory()
            {
                Name = "Egoless"
            });
            Result.Add(new RatingCategory()
            {
                Name = "Love"
            });
            Result.AddRange(DbResult);
            return(Result);
        }
Beispiel #3
0
        /// <summary>
        /// Loads the list of rating categories for the search interface.
        /// </summary>
        /// <returns>A list of RatingCategory objects.</returns>
        public async Task <List <RatingCategory> > GetRatingCategoriesAsync(bool addSpecial)
        {
            List <RatingCategory> Result = await Task.Run(() => SearchVideoAccess.GetCustomRatingCategories());

            Result.Insert(0, new RatingCategory()
            {
                Name = "--------------------"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Love"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Egoless"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Spiritual Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Spiritual Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Emotional Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Emotional Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Physical Feminine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Physical Masculine"
            });
            Result.Insert(0, new RatingCategory()
            {
                Name = "Intensity"
            });
            if (addSpecial)
            {
                Result.Insert(0, new RatingCategory()
                {
                    Name = "--------------------"
                });
                Result.Insert(0, new RatingCategory()
                {
                    Name = "Height"
                });
                Result.Insert(0, new RatingCategory()
                {
                    Name = "Length"
                });
                Result.Insert(0, new RatingCategory()
                {
                    Name = "Highest"
                });
                Result.Insert(0, new RatingCategory()
                {
                    Name = "Preference"
                });
            }
            Result.Insert(0, new RatingCategory());
            return(Result);
        }