?? icommentable.cs
字號:
?using System;
using System.Collections.Generic;
using System.Web;
namespace DNNLite.DesktopModules.Comment
{
/// <summary>
///ICommentAble 指示允許使用評論的接口
///任何模塊只要實現了次接口,就可以使用
///內置的評論模塊
/// </summary>
public interface ICommentAble
{
/// <summary>
/// 給評論模塊設置要評論的主題等。
/// 只會在要使用評論的模塊加載在
/// 頁面上的
/// 情況下調用
/// </summary>
/// <returns></returns>
CommentOption GetCommentOption();
/// <summary>
/// 在獲取評論或發布評論時
/// 傳入評論key以進行驗證
/// </summary>
/// <param name="commentkey">要驗證的key</param>
/// <returns></returns>
CommentOption GetCommentOption(string commentkey);
}
/// <summary>
/// 評論設置項
/// </summary>
public class CommentOption
{
/// <summary>
/// 返回被評論對象的唯一標識符
/// </summary>
public string CommentKey;
/// <summary>
/// 返回評論的主題
/// </summary>
public string Subject;
/// <summary>
/// 返回是否需要進行評論
/// 如果不需要,就不顯示
/// 評論框
/// </summary>
public bool NeedComment;
/// <summary>
/// 返回是否允許進行評論
/// 如果不允許,表示評論已結束
/// 只讀狀態
/// </summary>
public bool CanComment;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -