Exemple #1
0
        //#region "Render Action Controls"
        //    public static string RenderTextAction()
        //    {
        //        return "Modules/Moocs/UC/UC_TextAction.ascx";
        //    }
        //    public static string RenderCertificationAction()
        //    {
        //        return "Modules/Moocs/UC/UC_CertificationAction.ascx";
        //    }
        //#endregion
        #endregion

        #region Images
        public static string ImgContentType(string BaseUrl, SubActivityType ContentType)
        {
            switch (ContentType)
            {
            case SubActivityType.Quiz:
                return(ImgQuiz(BaseUrl));

            case SubActivityType.Forum:
                return(ImgForum(BaseUrl));

            case SubActivityType.File:
                return(ImgFile(BaseUrl));

            case SubActivityType.Wiki:
                return(ImgWiki(BaseUrl));

            case SubActivityType.Text:
                return(ImgText(BaseUrl));

            case SubActivityType.Certificate:
                return(imgCertificate(BaseUrl));

            default:
                return("");
            }
        }
Exemple #2
0
        public static String GetContent(SubActivityType type, Dictionary <EduPathTranslations, String> translations)
        {
            switch (type)
            {
            case SubActivityType.Certificate:
                return(translations[EduPathTranslations.Certification] + ": ");

            case SubActivityType.File:
                return(translations[EduPathTranslations.File] + ": ");

            case SubActivityType.Forum:
                return(translations[EduPathTranslations.Forum] + ": ");

            case SubActivityType.Quiz:
                return(translations[EduPathTranslations.Quiz] + ": ");

            case SubActivityType.Wiki:
                return(translations[EduPathTranslations.Wiki] + ": ");
            }
            return("");
        }
 public Boolean HasSubActivityType(SubActivityType type)
 {
     return(childrenStat != null && childrenStat.Any() && childrenStat.Where(c => c.ContentType == type).Any());
 }