public void Recycle() { this.prepareForRecycling(); this.TaskPanel.Children.Clear(); this.TaskPanel.Visibility = Visibility.Visible; this.collapsed = false; this.CollapsedChanged = null; StaticObjectPool.Push(this); }
private void Unbind() { if (m_binding != null) { m_binding.Unbind(); StaticObjectPool <UnityEventBinding> .Return(m_binding); m_binding = null; } }
private void Bind() { if (this.isBound) { return; } m_binding = StaticObjectPool <UnityEventBinding> .Get(); m_binding.Bind(m_driver.onValueObjChanged, this.driverValueChangedAction); }
protected override TogglDesktop.AutoCompleteControls.ProjectCategory createElement( Action selectWithClick, List <IRecyclable> recyclables, out Panel newParent, out ICollapsable collapsable) { var element = StaticObjectPool.PopOrNew <TogglDesktop.AutoCompleteControls.ProjectCategory>() .Initialised(base.Item, selectWithClick) .MarkForRecycling(recyclables); newParent = element.TaskPanel; collapsable = element; return(element); }
public void Recycle() { this.prepareForRecycling(); StaticObjectPool.Push(this); }
protected override TaskEntry createElement(Action selectWithClick, List <IRecyclable> recyclables) { return(StaticObjectPool.PopOrNew <TaskEntry>() .Initialised(this.Item, selectWithClick) .MarkForRecycling(recyclables)); }
protected override UIElement createElement(List <IRecyclable> recyclables) { return(StaticObjectPool.PopOrNew <GrayTextCategory>() .Initialised(this.text) .MarkForRecycling(recyclables)); }
public void Recycle() { StaticObjectPool.Push(this); }
protected override UIElement createElement(List <IRecyclable> recyclables) { return(StaticObjectPool.PopOrNew <AutoCompleteControls.WorkspaceCategory>() .Initialised(this.text) .MarkForRecycling(recyclables)); }
public void Recycle() { this.projectPanel.Children.Clear(); StaticObjectPool.Push(this); }
protected override UIElement createElement(out Panel childrenPanel, List <IRecyclable> recyclables) { return(StaticObjectPool.PopOrNew <AutoCompleteControls.ClientCategory>() .Initialised(this.Text, out childrenPanel) .MarkForRecycling(recyclables)); }