Source/Controls/RatingStar.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using DevComponents.Editors;
using System.Drawing;
namespace DevComponents.DotNetBar.Controls
{
/// <summary>
/// Represents the Rating control.
/// </summary>
[ToolboxBitmap(typeof(RatingStar), "Controls.RatingStar.ico"), ToolboxItem(true), DefaultEvent("RatingChanged"), System.Runtime.InteropServices.ComVisible(true)]
public class RatingStar : BaseItemControl, ICommandSource
{
#region Private Variables
private RatingItem _RatingItem = null;
#endregion
#region Events
/// <summary>
/// Occurs when Rating property has changed.
/// </summary>
[Description("Occurs when Rating property has changed.")]
public event EventHandler RatingChanged;
/// <summary>
/// Occurs when RatingValue property has changed.
/// </summary>
[Description("Occurs when Rating property has changed.")]
public event EventHandler RatingValueChanged;
/// <summary>
/// Occurs when Rating property is about to be changed and provides opportunity to cancel the change.
/// </summary>
[Description("Occurs when Rating property has changed.")]
public event RatingChangeEventHandler RatingChanging;
/// <summary>
/// Occurs when AverageRating property has changed.
/// </summary>
[Description("Occurs when AverageRating property has changed.")]
public event EventHandler AverageRatingChanged;
/// <summary>
/// Occurs when AverageRatingValue property has changed.
/// </summary>
[Description("Occurs when AverageRatingValue property has changed.")]
public event EventHandler AverageRatingValueChanged;
/// <summary>
/// Occurs when 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;
/// <summary>
/// Occurs when RatingValue property is set and it allows you to provide custom parsing for the values.
/// </summary>
public event ParseIntegerValueEventHandler ParseRatingValue;
/// <summary>
/// Occurs when AverageRatingValue property is set and it allows you to provide custom parsing for the values.
/// </summary>
public event ParseDoubleValueEventHandler ParseAverageRatingValue;
#endregion
后面还有 390 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。