⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subsectionutility.cs

📁 ASP.NET精品全站程序SQL版.rar
💻 CS
字号:
namespace ASPNET.StarterKit.Communities
{

	using System;
	using System.Text;
	using System.Text.RegularExpressions;
	using System.Collections;
	using System.Web;
	using System.Data;
	using System.Data.SqlClient;
	using System.Web.Caching;
    
	//*********************************************************************
	//
	// SectionUtility Class
	// SMR - Enh - New class file  for the multilevel section menu
	// Contains static methods for the Multi-Level Section Menu.
	//
	//*********************************************************************
	public class SubSectionUtility 
	{
		public static bool ShowSubSectionsForThisSection(SectionMenuLink SectionLnk, bool expandAll, SectionInfo objSectionInfo)
		{
			bool returnValue = false;
			if(expandAll && SectionLnk.SectionParentSectionID != -1)
			{
				returnValue = true;
			}
			if(!expandAll && objSectionInfo.ID == SectionLnk.SectionID && SectionLnk.SectionParentSectionID != -1)
			{
				returnValue = true;
			}
			else
			{
				if(!expandAll)
				{
					SectionInfo sectionInfo = SectionUtility.GetSectionInfo(objSectionInfo.ParentSectionID);
					while (sectionInfo != null) 
					{
						if(sectionInfo.ID == SectionLnk.SectionID && sectionInfo.ParentSectionID != -1)
						{
							returnValue = true;
							break;
						}
						sectionInfo = SectionUtility.GetSectionInfo(sectionInfo.ParentSectionID);
					} 
				}
			}
			return returnValue;	
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -