📄 commentextensionfamily.cs
字号:
/*
* CommentExtensionFamily.cs @Microsoft Visual Studio 2005 <.NET Framework 2.0>
* AfritXia
* 2007-12-06
*
* Copyright(c) http://www.AfritXia.NET/
*
*/
using System;
using System.Collections.Generic;
using NET.AfritXia.MyHome.Extension.Definition;
using NET.AfritXia.MyHome.Model.Message;
namespace NET.AfritXia.MyHome.Extension.Families
{
/// <summary>
/// 评论扩展家族类
/// </summary>
internal class CommentExtensionFamily : ExtensionFamilyBase<ICommentExtension>, ICommentExtension
{
#region 类构造器
/// <summary>
/// 类默认构造器
/// </summary>
internal CommentExtensionFamily()
{
}
#endregion
#region ICommentExtension 成员
public void OnPreAppend(Comment newComment)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnPreAppend(newComment);
}
public void OnAppendComplete(Comment newComment)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnAppendComplete(newComment);
}
public void OnPreDelete(Comment delComment)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnPreDelete(delComment);
}
public void OnDeleteComplete(Comment delComment)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnDeleteComplete(delComment);
}
public void OnPreViewCommentList(int belongToArticleID)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnPreViewCommentList(belongToArticleID);
}
public void OnViewCommentListComplete(int belongToArticleID, IList<Comment> viewCommentList)
{
foreach (ICommentExtension e in this.InnerExtensionList)
e.OnViewCommentListComplete(belongToArticleID, viewCommentList);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -