📄 delegatefunc.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using feiyun0112.cnblogs.com.CSDNReader.Model;
namespace feiyun0112.cnblogs.com.CSDNReader.Functions
{
public delegate void DelegateRefreshTopics(int intRoomID,bool blnNoRead,bool blnCountChanged);
public delegate void DelegateLoadingHtml(bool blnStart);
public delegate void DelegateLogin();
public delegate void DelegateRefreshInfo(string strInfo);
public delegate void DelegateCheckTopicExist(Topic topic);
public delegate bool StartDownloadCallback();
public delegate void RequestCompleteCallback(byte[] dataBuffer);
public delegate void ExceptionCallback(Exception e);
public delegate void LoadHtmlDelegate(byte[] dataBuffer);
/// <summary>
/// 定义的所有事件,为了方便,都用的是static
/// </summary>
class DelegateFunc
{
private DelegateFunc()
{
}
public static event DelegateRefreshTopics RefreshTopicsEvent;
public static void OnRefreshTopics(int intRoomID, bool blnNoRead, bool blnCountChanged)
{
if (RefreshTopicsEvent != null)
{
RefreshTopicsEvent(intRoomID, blnNoRead, blnCountChanged);
}
}
public static event DelegateLogin LoginEvent;
public static void OnLogin()
{
if (LoginEvent != null)
{
LoginEvent();
}
}
public static event DelegateRefreshInfo RefreshInfoEvent;
public static void OnRefreshInfo(string strInfo)
{
if (RefreshInfoEvent != null)
{
RefreshInfoEvent(strInfo);
}
}
public static event DelegateCheckTopicExist CheckTopicExistEvent;
public static void OnCheckTopicExist(Topic topic)
{
if (CheckTopicExistEvent != null)
{
CheckTopicExistEvent(topic);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -