namespace Microsoft.Windows.Forms
{
public partial class Sprite
{
private bool m_AutoFeedback = false;
///
/// 是否自动反馈到Owner
///
public bool AutoFeedback
{
get
{
return this.m_AutoFeedback;
}
set
{
if (value != this.m_AutoFeedback)
{
this.m_AutoFeedback = value;
}
}
}
private IUIControl m_Owner;
///
/// 父控件
///
public IUIControl Owner
{
get
{
return this.m_Owner;
}
}
///
/// 反馈方法,非强制
///
public void Feedback()
{
this.Feedback(false);
}
///
/// 反馈方法
///
/// 是否强制反馈
public void Feedback(bool force)
{
if (this.m_Owner != null && (force || this.m_AutoFeedback))
this.m_Owner.Invalidate();
}
}
}