📄 buddylistbox_item!1.cs
字号:
namespace Imps.Client.Pc.BizControls
{
using System;
public class buddylistbox_item<t_context> : listbox_widget.item_type
{
private t_context m_context;
private object m_image;
private string m_name;
private string m_personal_message;
private string m_prompt;
public buddylistbox_item(string name, string personal_message, object image, t_context context)
{
this.m_name = name;
this.m_personal_message = personal_message;
this.m_context = context;
this.m_image = image;
}
protected virtual void on_property_changed()
{
if (base.owner != null)
{
int index = 0;
foreach (object obj2 in base.owner.Items)
{
if (obj2.Equals(this))
{
IntPtr handle = base.owner.Handle;
if (!base.owner.IsDisposed && base.owner.IsHandleCreated)
{
base.owner.Invalidate(base.owner.GetItemRectangle(index));
}
break;
}
index++;
}
}
}
public t_context context
{
get
{
return this.m_context;
}
set
{
this.m_context = value;
this.on_property_changed();
}
}
public object image
{
get
{
return this.m_image;
}
set
{
this.m_image = value;
this.on_property_changed();
}
}
public string name
{
get
{
return this.m_name;
}
set
{
this.m_name = value;
this.on_property_changed();
}
}
public string personal_message
{
get
{
return this.m_personal_message;
}
set
{
this.m_personal_message = value;
this.on_property_changed();
}
}
public string prompt
{
get
{
return this.m_prompt;
}
set
{
this.m_prompt = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -