Source/Controls/ReflectionImage.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace DevComponents.DotNetBar.Controls
{
/// <summary>
/// Represents an image control with built-in reflection.
/// </summary>
[ToolboxBitmap(typeof(ReflectionImage), "Controls.ReflectionImage.ico"), ToolboxItem(true), Designer(typeof(Design.ReflectionImageDesigner))]
public class ReflectionImage : ControlWithBackgroundStyle
{
#region Private Variables
private Bitmap _ReflectionBitmap = null;
private Bitmap _DisabledBitmap = null;
#endregion
#region Events
/// <summary>
/// Initializes a new instance of the ReflectionImage class.
/// </summary>
public ReflectionImage()
{
}
#endregion
#region Constructor
#endregion
#region Internal Implementation
protected override void Dispose(bool disposing)
{
DisposeReflectionImage();
DisposeDisabledImage();
base.Dispose(disposing);
}
private Image _Image = null;
/// <summary>
/// Gets or sets the image displayed on the control.
/// </summary>
[DefaultValue(null), Description("Indicates image displayed on the control."), Category("Appearance")]
public Image Image
{
get { return _Image; }
set
{
if (_Image != value)
{
_Image = value;
OnImageChanged();
}
}
}
private void OnImageChanged()
{
DisposeDisabledImage();
后面还有 193 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。