Source/Controls/WarningBox.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Controls
{
/// <summary>
/// Represents non-intrusive Warning Box control with Options and Close button.
/// </summary>
[ToolboxBitmap(typeof(WarningBox), "Controls.WarningBox.ico"), ToolboxItem(true), DefaultEvent("OptionsClick"), System.Runtime.InteropServices.ComVisible(false), Designer(typeof(DevComponents.DotNetBar.Design.WarningBoxDesigner))]
public partial class WarningBox : UserControl
{
#region Events
/// <summary>
/// Occurs when Close button is clicked.
/// </summary>
[Description("Occurs when Close button is clicked.")]
public event EventHandler CloseClick;
/// <summary>
/// Occurs when Options button is clicked.
/// </summary>
[Description("Occurs when Options button is clicked.")]
public event EventHandler OptionsClick;
/// <summary>
/// Occurs when warning text markup link is clicked. Markup links can be created using "a" tag, for example:
/// <a name="MyLink">Markup link</a>
/// </summary>
public event MarkupLinkClickEventHandler MarkupLinkClick;
#endregion
#region Constructors
public WarningBox()
{
InitializeComponent();
CloseButton.Image = BarFunctions.LoadBitmap("SystemImages.CloseButton.png");
}
#endregion
#region Internal Implementation
/// <summary>
/// Raises the CloseClick event.
/// </summary>
/// <param name="e">Event arguments.</param>
protected virtual void OnCloseClick(EventArgs e)
{
EventHandler handler = CloseClick;
if (handler != null) handler(this, e);
}
/// <summary>
/// Raises the OptionsClick event.
/// </summary>
/// <param name="e">Event arguments.</param>
protected virtual void OnOptionsClick(EventArgs e)
后面还有 251 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。