本文整理汇总了C#中Gwen.Control.Base.DelayedDelete方法的典型用法代码示例。如果您正苦于以下问题:C# Base.DelayedDelete方法的具体用法?C# Base.DelayedDelete怎么用?C# Base.DelayedDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gwen.Control.Base
的用法示例。
在下文中一共展示了Base.DelayedDelete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveChild
/// <summary>
/// Detaches specified control from this one.
/// </summary>
/// <param name="child">Child to be removed.</param>
/// <param name="dispose">Determines whether the child should be disposed (added to delayed delete queue).</param>
public virtual void RemoveChild(Base child, bool dispose)
{
// If we removed our innerpanel
// remove our pointer to it
if (m_InnerPanel == child)
{
m_Children.Remove(m_InnerPanel);
m_InnerPanel.DelayedDelete();
m_InnerPanel = null;
return;
}
if (m_InnerPanel != null && m_InnerPanel.Children.Contains(child))
{
m_InnerPanel.RemoveChild(child, dispose);
return;
}
m_Children.Remove(child);
OnChildRemoved(child);
if (dispose)
child.DelayedDelete();
}