📄 sectionmenulink.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -