------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
82 lines
2.2 KiB
C#
82 lines
2.2 KiB
C#
// "Therefore those skilled at the unorthodox
|
|
// are infinite as heaven and earth,
|
|
// inexhaustible as the great rivers.
|
|
// When they come to an end,
|
|
// they begin again,
|
|
// like the days and months;
|
|
// they die and are reborn,
|
|
// like the four seasons."
|
|
//
|
|
// - Sun Tsu,
|
|
// "The Art of War"
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace TheArtOfDev.HtmlRenderer.Core.Entities
|
|
{
|
|
/// <summary>
|
|
/// Raised when the user clicks on a link in the html.
|
|
/// </summary>
|
|
public sealed class HtmlLinkClickedEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// the link href that was clicked
|
|
/// </summary>
|
|
private readonly string _link;
|
|
|
|
/// <summary>
|
|
/// collection of all the attributes that are defined on the link element
|
|
/// </summary>
|
|
private readonly Dictionary<string, string> _attributes;
|
|
|
|
/// <summary>
|
|
/// use to cancel the execution of the link
|
|
/// </summary>
|
|
private bool _handled;
|
|
|
|
/// <summary>
|
|
/// Init.
|
|
/// </summary>
|
|
/// <param name="link">the link href that was clicked</param>
|
|
/// <param name="attributes"></param>
|
|
public HtmlLinkClickedEventArgs(string link, Dictionary<string, string> attributes)
|
|
{
|
|
_link = link;
|
|
_attributes = attributes;
|
|
}
|
|
|
|
/// <summary>
|
|
/// the link href that was clicked
|
|
/// </summary>
|
|
public string Link
|
|
{
|
|
get { return _link; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// collection of all the attributes that are defined on the link element
|
|
/// </summary>
|
|
public Dictionary<string, string> Attributes
|
|
{
|
|
get { return _attributes; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// use to cancel the execution of the link
|
|
/// </summary>
|
|
public bool Handled
|
|
{
|
|
get { return _handled; }
|
|
set { _handled = value; }
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public override string ToString()
|
|
{
|
|
return string.Format("Link: {0}, Handled: {1}", _link, _handled);
|
|
}
|
|
}
|
|
} |