コード例 #1
0
    public static ThemeList GetThemes()
    {
        ThemeList     objList = new ThemeList();
        DirectoryInfo dInfo   = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("App_Themes"));

        DirectoryInfo[] dArrInfo = dInfo.GetDirectories();
        //ArrayList list = new ArrayList();
        foreach (DirectoryInfo sDirectory in dArrInfo)
        {
            BOTheme objBO = new BOTheme();
            objBO.Themename = sDirectory.Name;
            objList.AddToList(objBO);
        }
        return(objList);
    }