📄 ivrlistitem.cs
字号:
namespace Imps.Client.Pc
{
using System;
using System.Drawing;
public class IVRListItem
{
private Rectangle _cancelButtonRec;
private object _context;
private Color _descriptColor = Color.Black;
private string _description;
private Rectangle _descriptionRec;
private bool _disable;
private System.Drawing.Image _image;
private Rectangle _imageRec;
private string _moodePhrase;
private string _name;
private Rectangle _nameRec;
private IVRListBox _ownerListBox;
private Rectangle _rect;
private bool _showCancelButton;
public IVRListItem(IVRListBox ownerListBox)
{
this._ownerListBox = ownerListBox;
}
internal Rectangle CancelButtonRec
{
get
{
return this._cancelButtonRec;
}
set
{
this._cancelButtonRec = value;
}
}
public object Context
{
get
{
return this._context;
}
set
{
this._context = value;
}
}
public Color DescriptColor
{
get
{
return this._descriptColor;
}
set
{
this._descriptColor = value;
this._ownerListBox.Invalidate(this._descriptionRec);
}
}
public string Description
{
get
{
return this._description;
}
set
{
this._description = value;
this._ownerListBox.Invalidate(this._descriptionRec);
}
}
internal Rectangle DescriptionRec
{
get
{
return this._descriptionRec;
}
set
{
this._descriptionRec = value;
}
}
public bool Disable
{
get
{
return this._disable;
}
set
{
this._disable = value;
this._ownerListBox.Invalidate(this._rect);
}
}
public System.Drawing.Image Image
{
get
{
return this._image;
}
set
{
this._image = value;
this._ownerListBox.Invalidate(this._imageRec);
}
}
internal Rectangle ImageRec
{
get
{
return this._imageRec;
}
set
{
this._imageRec = value;
}
}
public string MoodePhrase
{
get
{
return this._moodePhrase;
}
set
{
this._moodePhrase = value;
}
}
public string Name
{
get
{
return this._name;
}
set
{
this._name = value;
this._ownerListBox.Invalidate(this._nameRec);
}
}
internal Rectangle NameRec
{
get
{
return this._nameRec;
}
set
{
this._nameRec = value;
}
}
public IVRListBox OwnerListBox
{
get
{
return this._ownerListBox;
}
set
{
this._ownerListBox = value;
}
}
internal Rectangle Rect
{
get
{
return this._rect;
}
set
{
this._rect = value;
}
}
public bool ShowCancelButton
{
get
{
return this._showCancelButton;
}
set
{
this._showCancelButton = value;
this._ownerListBox.Invalidate(this._cancelButtonRec);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -