sectionmenulink.cs
来自「非常不错的学校在线考试分析系统」· CS 代码 · 共 81 行
CS
81 行
namespace ASPNET.StarterKit.Communities {
using System;
//*********************************************************************
//
// SectionMenuLink Class
//
// Represents a link in the SectionMenu.
//
//*********************************************************************
public class SectionMenuLink {
string _sectionMenuTitle;
string _sectionPath;
int _sectionParentSectionID; // SMR - Enh - Added for multilevel section menu
int _sectionID; // SMR - Enh - Added for multilevel section menu
//*********************************************************************
//
// SectionMenuTitle Property
//
// The name of the section as displayed.
//
//*********************************************************************
public string SectionMenuTitle {
get { return _sectionMenuTitle; }
}
//*********************************************************************
//
// SectionPath Property
//
// The path to the section.
//
//*********************************************************************
public string SectionPath {
get { return _sectionPath; }
}
// SMR - Enh - Added for multilevel section menu
public int SectionParentSectionID
{
get {return _sectionParentSectionID; }
}
// SMR - Enh - Added for multilevel section menu
public int SectionID
{
get {return _sectionID;}
}
//*********************************************************************
//
// SectionMenuLink Constructor
//
// Initializes SectionMenuLink with a section name
// and path.
//
//*********************************************************************
public SectionMenuLink(string sectionMenuTitle,string sectionPath) {
_sectionMenuTitle = sectionMenuTitle;
_sectionPath = sectionPath;
}
// SMR - Enh - overloaded constructor for multilevel section menu
public SectionMenuLink(string sectionMenuTitle,string sectionPath,int sectionID,int sectionParentSectionID)
{
_sectionMenuTitle = sectionMenuTitle;
_sectionPath = sectionPath;
_sectionID = sectionID;
_sectionParentSectionID = sectionParentSectionID;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?